(filePath: string)
| 1 | export function normalizeFilePathSlashes(filePath: string): string { |
| 2 | if (/^[a-zA-Z]:[\\/]/.test(filePath) || filePath.startsWith("\\\\")) { |
| 3 | return filePath.replace(/\\/g, "/"); |
| 4 | } |
| 5 | return filePath; |
| 6 | } |
| 7 | |
| 8 | export function encodeFilePathForApi(filePath: string): string { |
| 9 | return normalizeFilePathSlashes(filePath) |
no outgoing calls
no test coverage detected