(value: string)
| 1 | export type PathKey = string & { _brand: "PathKey" } |
| 2 | |
| 3 | const isDrive = (value: string) => { |
| 4 | if (value.length !== 2) return false |
| 5 | const code = value.charCodeAt(0) |
| 6 | return value[1] === ":" && ((code >= 65 && code <= 90) || (code >= 97 && code <= 122)) |
| 7 | } |
| 8 | |
| 9 | const trimTrailingSlashes = (value: string) => { |
| 10 | for (let i = value.length - 1; i >= 0; i--) { |