MCPcopy
hub / github.com/spicetify/cli / disableSentry

Function disableSentry

src/preprocess/preprocess.go:543–552  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

541}
542
543func disableSentry(input string) string {
544 //utils.Replace(&input, `\(([^,]+),([^,]+),\{sampleRate:([^,]+),tracesSampleRate:([^,]+)(,.*?)?\}`, func(submatches ...string) string {
545 // return fmt.Sprintf(",%s", submatches[0])
546 //})
547 // Spotify enables sentry only for versions that are newer than 30 days old.
548 utils.Replace(&input, "/864e5<30", func(submatches ...string) string {
549 return "<0"
550 })
551 return input
552}
553
554func disableLogging(input string) string {
555 loggingPatches := []Patch{

Callers 1

StartFunction · 0.85

Calls 1

ReplaceFunction · 0.92

Tested by

no test coverage detected