projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8351a2
)
Windows: make path.normalize convert all slashes to backslashes
author
Bert Belder
<bertbelder@gmail.com>
Sun, 13 May 2012 01:18:09 +0000
(
03:18
+0200)
committer
Bert Belder
<bertbelder@gmail.com>
Sun, 13 May 2012 01:18:09 +0000
(
03:18
+0200)
Closes #3066
lib/path.js
patch
|
blob
|
history
diff --git
a/lib/path.js
b/lib/path.js
index 5d69d2270feb27e57bd8b7ae36d1d56e255fde04..5fb6656dc4be3331896826ce5ecc448561ec8a34 100644
(file)
--- a/
lib/path.js
+++ b/
lib/path.js
@@
-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;
};