From 724496b41d714fbae41bfb6ed727ef351c58da2d Mon Sep 17 00:00:00 2001 From: Benjamin Cane Date: Thu, 4 Jul 2024 16:17:38 -0700 Subject: [PATCH] Update pkg/sanitize/sanitize.go Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- pkg/sanitize/sanitize.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/sanitize/sanitize.go b/pkg/sanitize/sanitize.go index 61acacf..70ab3cd 100644 --- a/pkg/sanitize/sanitize.go +++ b/pkg/sanitize/sanitize.go @@ -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", "") }