Skip to content

Commit

Permalink
fix(preprocess/disableLogging): match function in older versions (#2626)
Browse files Browse the repository at this point in the history
  • Loading branch information
rxri authored Oct 31, 2023
1 parent 08b8b0a commit f0d3e9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/preprocess/preprocess.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit f0d3e9f

Please sign in to comment.