Skip to content

Commit

Permalink
Enable multiline on regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyist committed Apr 3, 2024
1 parent c948902 commit 6c51ef9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion channel_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func sanitizeSecrets(body string) string {
pattern, exists := os.LookupEnv("COURIER_SANITIZE_PATTERN")

if !exists {
pattern = "(?:^Po-Api-Key:.+\\n|^X-Api-Key:.+\\n|^Authorization:.+\\n|^Token:.+\\n)+"
pattern = `(?m)(?:^Po-Api-Key:.+\n|^X-Api-Key:.+\n|^Authorization:.+\n|^Token:.+\n)+`
}

if sanitizeSecretsRegexp == nil {
Expand Down

0 comments on commit 6c51ef9

Please sign in to comment.