We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1113e58 commit a4f1805Copy full SHA for a4f1805
test/parallel/test-runner-output.mjs
@@ -15,7 +15,7 @@ function replaceTestDuration(str) {
15
}
16
17
const color = '(\\[\\d+m)';
18
-const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd()}/?${color}(.*)${color}\\)`, 'g');
+const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd().replaceAll(/[\\^$*+?.()|[\]{}]/g, '\\$&')}/?${color}(.*)${color}\\)`, 'g');
19
20
function replaceSpecDuration(str) {
21
return str
0 commit comments