We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99b3c88 commit f7ccfd2Copy full SHA for f7ccfd2
test/parallel/test-path-resolve.js
@@ -12,7 +12,7 @@ const backslashRE = /\\/g;
12
const posixyCwd = common.isWindows ?
13
(() => {
14
const _ = process.cwd()
15
- .replace(new RegExp(`\\${path.sep}`, 'g'), path.posix.sep);
+ .replaceAll(path.sep, path.posix.sep);
16
return _.substr(_.indexOf(path.posix.sep));
17
})() :
18
process.cwd();
0 commit comments