diff --git a/packages/web/src/main.ts b/packages/web/src/main.ts index 547d916..1f9306f 100644 --- a/packages/web/src/main.ts +++ b/packages/web/src/main.ts @@ -6,7 +6,8 @@ import * as Sentry from "@sentry/browser"; * the history breadcrumb for taking it out of the address bar still names * it, so it is cut from every report before one leaves the browser. */ function scrub(text: string): string { - return text.replace(/(#seat=)[^&#\s"']*/g, "$1…"); + // The cut runs to the end of the JSON string, whatever the name holds. + return text.replace(/(#seat=)(?:[^"\\]|\\.)*/g, "$1…"); } // Errors only — no tracing, no replay. Without a DSN baked at build time