diff --git a/src/preprocess/preprocess.go b/src/preprocess/preprocess.go index d7227f7698..571f29ebdc 100644 --- a/src/preprocess/preprocess.go +++ b/src/preprocess/preprocess.go @@ -247,7 +247,7 @@ func disableSentry(input string) string { func disableLogging(input string) string { utils.Replace(&input, `sp://logging/v3/\w+`, "") utils.Replace(&input, `[^"\/]+\/[^"\/]+\/(public\/)?v3\/events`, "") - utils.Replace(&input, `return\s+this\.storageAdapter\.setItem\(.+?\)`, "return null") + utils.Replace(&input, `(\(e,\s*t\))\s*{(\s*return\s*this\.storageAdapter\.setItem\([${}\w."()]+,\s*t\)\s*)}`, "${1}{return null}") return input }