Browse Source

_makeLong shouldn't turn the empty string into \\?\C:\

v0.7.4-release
Bert Belder 13 years ago
parent
commit
e5ea6ad0f0
  1. 5
      lib/path.js

5
lib/path.js

@ -420,6 +420,11 @@ exports.existsSync = function(path) {
var _makeLong = exports._makeLong = isWindows ?
function(path) {
path = "" + path;
if (!path) {
return "";
}
var resolvedPath = exports.resolve(path);
if (resolvedPath.match(/^[a-zA-Z]\:\\/)) {

Loading…
Cancel
Save