Skip to content

Commit f7ccfd2

Browse files
committed
fixup! fixup! path: fix posix.relative() on Windows
1 parent 99b3c88 commit f7ccfd2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-path-resolve.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const backslashRE = /\\/g;
1212
const posixyCwd = common.isWindows ?
1313
(() => {
1414
const _ = process.cwd()
15-
.replace(new RegExp(`\\${path.sep}`, 'g'), path.posix.sep);
15+
.replaceAll(path.sep, path.posix.sep);
1616
return _.substr(_.indexOf(path.posix.sep));
1717
})() :
1818
process.cwd();

0 commit comments

Comments
 (0)