From 2dac850b5406164a1d8f2f781014d7a5b56290ab Mon Sep 17 00:00:00 2001 From: zouap Date: Thu, 3 Mar 2022 17:47:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- routers/search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/search.go b/routers/search.go index 21137fb26..76e5f1de3 100644 --- a/routers/search.go +++ b/routers/search.go @@ -252,7 +252,7 @@ func dealLongText(text string, Key string, MatchedQueries []string) string { textRune := []rune(text) textRuneStr := string(textRune) - stringlen := len(textRuneStr) + stringlen := len(textRune) if isNeedToDealText && stringlen > 200 { index := strings.Index(textRuneStr, "color=") if index > 0 {