Skip to content

Commit

Permalink
changed the regex to redact multiline json strings in the output of t…
Browse files Browse the repository at this point in the history
…he build
  • Loading branch information
almadireddy committed Jun 11, 2019
1 parent 5ce73c7 commit d6a641c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
)

var reRedact = regexp.MustCompile(`(?:^|\s+)(-E\s+\S+:|--oauth2_access_token\s+)\S+`)
var reRedact = regexp.MustCompile(`(?:^|\s+)(-E\s+\S+:|--oauth2_access_token\s+)({[\s\S]*}|\S+)`)

type Environ struct {
dir string
Expand Down

0 comments on commit d6a641c

Please sign in to comment.