(input: string)
| 1 | export function stripFileProtocol(input: string) { |
| 2 | if (!input.startsWith("file://")) return input |
| 3 | return input.slice("file://".length) |
| 4 | } |
| 5 | |
| 6 | export function stripQueryAndHash(input: string) { |
| 7 | const hashIndex = input.indexOf("#") |