mirror of https://github.com/nodejs/node.git
parent
d8351a2ef4
commit
d91004a73d
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue