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

This commit is contained in:
Bert Belder 2012-02-02 16:57:45 +01:00
parent a661830569
commit e5ea6ad0f0

View File

@ -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]\:\\/)) {