always strip ansi color from file + autoassign

This commit is contained in:
Mzack9999
2025-10-19 19:43:29 +04:00
parent 6d38be300a
commit 5d1a326ab6
2 changed files with 10 additions and 5 deletions
+9
View File
@@ -0,0 +1,9 @@
addReviewers: true
reviewers:
- dogancanbakir
- dwisiswant0
- mzack9999
numberOfReviewers: 1
skipKeywords:
- '@dependabot'
+1 -5
View File
@@ -1183,11 +1183,7 @@ func (r *Runner) RunEnumeration() {
//nolint:errcheck // this method needs a small refactor to reduce complexity
if plainFile != nil {
if r.options.NoColor {
plainFile.WriteString(resp.str + "\n")
} else {
plainFile.WriteString(stripANSI(resp.str) + "\n")
}
plainFile.WriteString(stripANSI(resp.str) + "\n")
}
if len(r.options.ExcludeOutputFields) > 0 {