Merge pull request #158 from camaya/redact-only-secret-on-line

Change redacted behaviour on the line information
This commit is contained in:
Zachary Rice authored and GitHub committed 2018-11-30 08:55:22 -06:00
commit b902d7310a
1 file changed
+1 -1
+1 -1
View File
@@ -669,7 +669,7 @@ func addLeak(leaks []Leak, line string, offender string, leakType string, diff g
}
if opts.Redact {
leak.Offender = "REDACTED"
leak.Line = "REDACTED"
leak.Line = strings.Replace(line, offender, "REDACTED", -1)
}
if opts.Verbose {