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 {