Skip to content

Commit 7ad4cf3

Browse files
committed
fixup! fixup! path: fix posix.relative() on Windows
1 parent 1042b58 commit 7ad4cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-path-resolve.js

Lines changed: 1 addition & 1 deletion
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)