summaryrefslogtreecommitdiff
path: root/lib/path.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/path.js')
-rw-r--r--lib/path.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/path.js b/lib/path.js
index da0f8bee68..db0cdea2dd 100644
--- a/lib/path.js
+++ b/lib/path.js
@@ -176,6 +176,11 @@ if (isWindows) {
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;