Browse Source

path: path.normalize no longer lower-cases drive letters

Fixes an omission in e24fa83.
archived-io.js-v0.12
Bert Belder 10 years ago
parent
commit
b4d6203b38
  1. 5
      lib/path.js

5
lib/path.js

@ -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…
Cancel
Save