Skip to content

Commit 7b80e13

Browse files
try to fix failing windows test
1 parent 145f90c commit 7b80e13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v-next/hardhat/src/internal/cli/telemetry/sentry/anonymizer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export class Anonymizer {
123123
errorMessage = this.#anonymizeMnemonic(errorMessage);
124124

125125
// the \\ before path.sep is necessary for this to work on windows
126-
const pathRegex = new RegExp(`\\S+\\${path.sep}\\S+`, "g");
126+
const pathRegex = /\S+[\/\\]\S+/g;
127127

128128
// for files that don't have a path separator
129129
const fileRegex = new RegExp("\\S+\\.(js|ts)\\S*", "g");

0 commit comments

Comments
 (0)