* Normalize path separators, converting `\` into `/`.
(path)
| 7864 | * Normalize path separators, converting `\` into `/`. |
| 7865 | */ |
| 7866 | function normalizeSlashes(path) { |
| 7867 | var index = path.indexOf("\\"); |
| 7868 | if (index === -1) { |
| 7869 | return path; |
| 7870 | } |
| 7871 | backslashRegExp.lastIndex = index; // prime regex with known position |
| 7872 | return path.replace(backslashRegExp, ts.directorySeparator); |
| 7873 | } |
| 7874 | ts.normalizeSlashes = normalizeSlashes; |
| 7875 | /** |
| 7876 | * Reduce an array of path components to a more simplified path by navigating any |
no test coverage detected
searching dependent graphs…