mirror of https://github.com/nodejs/node.git
path: path.normalize no longer lower-cases drive letters
Fixes an omission in e24fa83
.
pull/116/head
parent
e24fa83e69
commit
b4d6203b38
|
@ -175,11 +175,6 @@ win32.normalize = function(path) {
|
|||
tail = result[3],
|
||||
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
|
||||
tail = normalizeArray(tail.split(/[\\\/]+/).filter(function(p) {
|
||||
return !!p;
|
||||
|
|
Loading…
Reference in New Issue