From 58140add3d4090240f34507c2b9f7ea6820fcb28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 13 Jan 2023 17:07:41 +0800 Subject: [PATCH] fix --- string.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/string.go b/string.go index 10b5bd8..44414cf 100644 --- a/string.go +++ b/string.go @@ -167,9 +167,9 @@ func (s *stringOperate) ClearSpace(src string, spaceList ...string) string { if len(spaceList) == 0 { spaceList = []string{ " ", - `\r`, - `\n`, - `\t`, + "\\r", + "\\n", + "\\t", } } for _, item := range spaceList {