Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
_makeLong shouldn't turn the empty string into \\?\C:\
Browse files Browse the repository at this point in the history
  • Loading branch information
piscisaureus committed Feb 2, 2012
1 parent a661830 commit e5ea6ad
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/path.js
Expand Up @@ -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]\:\\/)) {
Expand Down

0 comments on commit e5ea6ad

Please sign in to comment.