path: path.normalize no longer lower-cases drive letters
Fixes an omission in e24fa83.
This commit is contained in:
parent
e24fa83e69
commit
b4d6203b38
@ -175,11 +175,6 @@ win32.normalize = function(path) {
|
|||||||
tail = result[3],
|
tail = result[3],
|
||||||
trailingSlash = /[\\\/]$/.test(tail);
|
trailingSlash = /[\\\/]$/.test(tail);
|
||||||
|
|
||||||
// If device is a drive letter, we'll normalize to lower case.
|
|
||||||
if (device && device.charAt(1) === ':') {
|
|
||||||
device = device[0].toLowerCase() + device.substr(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Normalize the tail path
|
// Normalize the tail path
|
||||||
tail = normalizeArray(tail.split(/[\\\/]+/).filter(function(p) {
|
tail = normalizeArray(tail.split(/[\\\/]+/).filter(function(p) {
|
||||||
return !!p;
|
return !!p;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user