Skip to content

Commit

Permalink
fixup! fixup! path: fix posix.relative() on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Mar 14, 2021
1 parent 1042b58 commit 7ad4cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/parallel/test-path-resolve.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const backslashRE = /\\/g;
const posixyCwd = common.isWindows ?
(() => {
const _ = process.cwd()
.replace(new RegExp(`\\${path.sep}`, 'g'), path.posix.sep);
.replaceAll(path.sep, path.posix.sep);
return _.substr(_.indexOf(path.posix.sep));
})() :
process.cwd();
Expand Down

0 comments on commit 7ad4cf3

Please sign in to comment.