| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 95d8a27 commit 4ddd0da
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -15,7 +15,7 @@ function replaceTestDuration(str) { | |||
| 15 | 15 | } | |
| 16 | 16 | ||
| 17 | 17 | const color = '(\\[\\d+m)'; | |
| 18 | - const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd()}/?${color}(.*)${color}\\)`, 'g'); | ||
| 18 | + const stackTraceBasePath = new RegExp(`${color}\\(${process.cwd().replaceAll(/[\\^$*+?.()|[\]{}]/g, '\\$&')}/?${color}(.*)${color}\\)`, 'g'); | ||
| 19 | 19 | ||
| 20 | 20 | function replaceSpecDuration(str) { | |
| 21 | 21 | return str | |
| Back | FazBrowse Home | New Git URL |
0 commit comments