(path: string)
| 1 | const absolutePath = new RegExp('^(?:[a-z]+:)?//|^/', 'i'); |
| 2 | |
| 3 | function normalizePath(path: string) { |
| 4 | return path.replace(/[\\/]+/g, '/'); |
| 5 | } |
| 6 | |
| 7 | export function isAbsolutePath(path: string) { |
| 8 | const result = absolutePath.test(path); |
no test coverage detected