Skip to content

Commit f8220d9

Browse files
committed
test(plugin-typescript-e2e): fix path for windows robust variant 2
1 parent 062d9be commit f8220d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

e2e/plugin-typescript-e2e/tests/collect.e2e.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function sanitizeReportPaths(report: Report): Report {
3131
},
3232
}),
3333
message: issue.message.replace(
34-
/['"]([^'"]*\\[^'"]*)['"]/g,
34+
/['"]([A-Z]:[/\\][^'"]*|[^'"]*[/\\][^'"]*[/\\][^'"]*)['"]/g,
3535
(match, filePath) => {
3636
try {
3737
const lastSegment = filePath.split(/[/\\]/).pop() || '';

0 commit comments

Comments
 (0)