We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80f7bb2 commit 9f73458Copy full SHA for 9f73458
1 file changed
hooks/jsonnet-fmt-hook/main_test.go
@@ -16,7 +16,7 @@ func normalizeDiff(diff string) string {
16
reSpaces := regexp.MustCompile(`\s+`)
17
18
normDiff := strings.TrimSpace(diff)
19
- normDiff = strings.ReplaceAll(diff, "\n", " ")
+ normDiff = strings.ReplaceAll(normDiff, "\n", " ")
20
normDiff = reAnsiEscape.ReplaceAllString(normDiff, "")
21
normDiff = reSpaces.ReplaceAllString(normDiff, " ")
22
return strings.ToLower(normDiff)
0 commit comments