diff options
author | Nikolai Vavilov <vvnicholas@gmail.com> | 2014-12-06 16:42:24 +0200 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2014-12-08 17:35:52 +0100 |
commit | e24fa83e69194f05999c4d559482ca87dda2af44 (patch) | |
tree | 94a7edc187b30e79b39dbb96a377eddaed8249d0 /lib/path.js | |
parent | e3aa802b382d2893db0218730b70f60e0c16874a (diff) | |
download | android-node-v8-e24fa83e69194f05999c4d559482ca87dda2af44.tar.gz android-node-v8-e24fa83e69194f05999c4d559482ca87dda2af44.tar.bz2 android-node-v8-e24fa83e69194f05999c4d559482ca87dda2af44.zip |
Revert "path: resolve normalize drive letter to lower case"
This reverts commit f6e574018090ed4d63596b8a3bb614f8f48b6267.
Changing drive letters to lowercase violates the principle of
least surprise. Other functions that do this should get fixed too.
Conflicts:
lib/path.js
PR-URL: https://github.com/iojs/io.js/pull/100
Reviewed-By: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'lib/path.js')
-rw-r--r-- | lib/path.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/path.js b/lib/path.js index 8b08496b48..61f35b3927 100644 --- a/lib/path.js +++ b/lib/path.js @@ -162,12 +162,6 @@ win32.resolve = function() { resolvedTail = normalizeArray(resolvedTail.split(/[\\\/]+/).filter(f), !resolvedAbsolute).join('\\'); - // If device is a drive letter, we'll normalize to lower case. - if (resolvedDevice && resolvedDevice.charAt(1) === ':') { - resolvedDevice = resolvedDevice[0].toLowerCase() + - resolvedDevice.substr(1); - } - return (resolvedDevice + (resolvedAbsolute ? '\\' : '') + resolvedTail) || '.'; }; |