Skip to content

Commit

Permalink
Merge pull request #250 from pace/fix-jwt-pattern
Browse files Browse the repository at this point in the history
Fix missing escape in JWT pattern redaction
  • Loading branch information
threez committed Jan 12, 2021
2 parents 641da95 + 1c975ac commit 404b7a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/redact/pattern.go
Expand Up @@ -48,5 +48,5 @@ var (
PatternCCJCB = regexp.MustCompile(`(?:2131|1800|35\d{3})\d{11}`)

// PatternJWT JsonWebToken
PatternJWT = regexp.MustCompile(`(?:ey[a-zA-Z0-9=_-]+.){2}.[a-zA-Z0-9=_-]+`)
PatternJWT = regexp.MustCompile(`(?:ey[a-zA-Z0-9=_-]+\.){2}[a-zA-Z0-9=_-]+`)
)

0 comments on commit 404b7a3

Please sign in to comment.