This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Windows: make path.normalize convert all slashes to backslashes

Closes #3066
  • Loading branch information...
piscisaureus committed May 13, 2012
1 parent d8351a2 commit d91004a73d7ae11829f06aea7f630129e8d2683c
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/path.js
View
@@ -177,6 +177,9 @@ if (isWindows) {
tail += '\\';
}
+ // Convert slashes to backslashes when `device` points to an UNC root.
+ device = device.replace(/\//g, '\\');
+
return device + (isAbsolute ? '\\' : '') + tail;
};

0 comments on commit d91004a

Please sign in to comment.