|
@ -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; |
|
|