Windows: make path.normalize convert all slashes to backslashes

Closes #3066
pull/24503/head
Bert Belder 2012-05-13 03:18:09 +02:00
parent d8351a2ef4
commit d91004a73d
1 changed files with 3 additions and 0 deletions

View File

@ -177,6 +177,9 @@ if (isWindows) {
tail += '\\'; tail += '\\';
} }
// Convert slashes to backslashes when `device` points to an UNC root.
device = device.replace(/\//g, '\\');
return device + (isAbsolute ? '\\' : '') + tail; return device + (isAbsolute ? '\\' : '') + tail;
}; };