From 8f8476eed030d8402d4c705481d0d6ac3fa09abd 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:16:24 +0800 Subject: [PATCH] fix --- string.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/string.go b/string.go index 44414cf..25f639e 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 {