From 136c84463e748dc74467cf74a3fc45e4f3c20405 Mon Sep 17 00:00:00 2001 From: Chris Rybicki Date: Mon, 5 Aug 2024 17:56:11 -0400 Subject: [PATCH] chore: fix windows snapshot sanitation (#6987) --- tools/hangar/src/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/hangar/src/utils.ts b/tools/hangar/src/utils.ts index 2ad79d242cb..f7040ee7b42 100644 --- a/tools/hangar/src/utils.ts +++ b/tools/hangar/src/utils.ts @@ -58,7 +58,7 @@ export function sanitizeOutput(output: string) { // Normalize line endings .replaceAll("\r\n", "\n") // Normalize windows slashes - .replace(/\\+([a-zA-Z0-9\.]{1})/g, "/$1") + .replace(/\\+([a-zA-Z0-9\.@]{1})/g, "/$1") // Remove line/column numbers from rust sources .replace(/(src\/.+\.rs):\d+:\d+/g, "$1:LINE:COL") // Remove absolute stacktraces