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 18, 2021
1 parent 99b3c88 commit f7ccfd2
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 f7ccfd2

Please sign in to comment.