_makeLong shouldn't turn the empty string into \\?\C:\
This commit is contained in:
parent
a661830569
commit
e5ea6ad0f0
@ -420,6 +420,11 @@ exports.existsSync = function(path) {
|
|||||||
|
|
||||||
var _makeLong = exports._makeLong = isWindows ?
|
var _makeLong = exports._makeLong = isWindows ?
|
||||||
function(path) {
|
function(path) {
|
||||||
|
path = "" + path;
|
||||||
|
if (!path) {
|
||||||
|
return "";
|
||||||
|
}
|
||||||
|
|
||||||
var resolvedPath = exports.resolve(path);
|
var resolvedPath = exports.resolve(path);
|
||||||
|
|
||||||
if (resolvedPath.match(/^[a-zA-Z]\:\\/)) {
|
if (resolvedPath.match(/^[a-zA-Z]\:\\/)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user