(filePath: string)
| 92 | const WIN32_DRIVE_PREFIX = /^\/[A-Za-z]:[\\/]/; |
| 93 | |
| 94 | function normalizeFilePath(filePath: string): string { |
| 95 | if (process.platform === 'win32' && WIN32_DRIVE_PREFIX.test(filePath)) { |
| 96 | return filePath.slice(1); |
| 97 | } |
| 98 | return filePath; |
| 99 | } |
| 100 | |
| 101 | /** |
| 102 | * Extracts the file path and function name from a file:// URL |
no outgoing calls
no test coverage detected
searching dependent graphs…