From f7ccfd2a73914b34ddb8f6b9441d1f5ed8d67798 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Sun, 14 Mar 2021 12:27:59 -0700 Subject: [PATCH] fixup! fixup! path: fix posix.relative() on Windows --- test/parallel/test-path-resolve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-path-resolve.js b/test/parallel/test-path-resolve.js index 859b1d1e52489d..7fea7f56aae91e 100644 --- a/test/parallel/test-path-resolve.js +++ b/test/parallel/test-path-resolve.js @@ -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();