We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f80b66 commit b0c39edCopy full SHA for b0c39ed
src/system/path.ts
@@ -178,7 +178,7 @@ export function normalizePath(path: string): string {
178
path = path.replace(pathNormalizeRegex, '/');
179
if (path.charCodeAt(path.length - 1) === slash) {
180
// Don't remove the trailing slash on Windows root folders, such as z:\
181
- if (path.length != 3 || (path.length == 3 && path.charCodeAt(1) != ':')) {
+ if (!isWindows || path.length !== 3 || path[1] !== ':') {
182
path = path.slice(0, -1);
183
}
184
0 commit comments