Windows: make path.normalize convert all slashes to backslashes
Closes #3066
This commit is contained in:
parent
d8351a2ef4
commit
d91004a73d
@ -177,6 +177,9 @@ if (isWindows) {
|
|||||||
tail += '\\';
|
tail += '\\';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Convert slashes to backslashes when `device` points to an UNC root.
|
||||||
|
device = device.replace(/\//g, '\\');
|
||||||
|
|
||||||
return device + (isAbsolute ? '\\' : '') + tail;
|
return device + (isAbsolute ? '\\' : '') + tail;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user