* Normalizes the beginning of a path from e.g. ../../../ to ./
(path: string)
| 65 | * Normalizes the beginning of a path from e.g. ../../../ to ./ |
| 66 | */ |
| 67 | function normalizePath(path: string): string { |
| 68 | return path.replace(/^(\.\.\/)+/, './'); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Removes a trailing slash from a path so glob patterns can be appended cleanly. |
no test coverage detected