Skip to content

Commit

Permalink
Update pkg/sanitize/sanitize.go
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
madflojo and coderabbitai[bot] authored Jul 4, 2024
1 parent 98bba3e commit 724496b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/sanitize/sanitize.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
)

// String sanitizes a string by removing any non-alphanumeric characters.
// String sanitizes a string by removing newline characters.
func String(s string) string {
return strings.ReplaceAll(strings.ReplaceAll(s, "\r", ""), "\n", "")

Check warning on line 12 in pkg/sanitize/sanitize.go

View check run for this annotation

Codecov / codecov/patch

pkg/sanitize/sanitize.go#L11-L12

Added lines #L11 - L12 were not covered by tests
}

0 comments on commit 724496b

Please sign in to comment.