22 lines · 568 B · TypeScript
RawDownload
export function isWindowsDrivePath(value: string): boolean {  return /^[a-zA-Z]:([/\\]|$)/.test(value);} export function isUncPath(value: string): boolean {  return value.startsWith("\\\\");} export function isWindowsAbsolutePath(value: string): boolean {  return isUncPath(value) || isWindowsDrivePath(value);} export function isExplicitRelativePath(value: string): boolean {  return (    value === "." ||    value === ".." ||    value.startsWith("./") ||    value.startsWith("../") ||    value.startsWith(".\\") ||    value.startsWith("..\\")  );}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t