(path: string)
| 66 | } |
| 67 | |
| 68 | export function splitFileAndPostfix(path: string): { |
| 69 | file: string |
| 70 | postfix: string |
| 71 | } { |
| 72 | const file = cleanUrl(path) |
| 73 | return { file, postfix: path.slice(file.length) } |
| 74 | } |
| 75 | |
| 76 | const externalRE = /^(?:[a-z]+:)?\/\// |
| 77 | export const isExternalUrl = (url: string): boolean => externalRE.test(url) |
no test coverage detected