From d6a641ce22a1eed2c7bd3c089047731ec22c9648 Mon Sep 17 00:00:00 2001 From: Madireddy Date: Tue, 11 Jun 2019 16:05:59 -0400 Subject: [PATCH] changed the regex to redact multiline json strings in the output of the build --- exec.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.go b/exec.go index 68a3e07..bd6010e 100644 --- a/exec.go +++ b/exec.go @@ -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