Browse Source

提交代码。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 3 years ago
parent
commit
2dac850b54
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      routers/search.go

+ 1
- 1
routers/search.go View File

@@ -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 {


Loading…
Cancel
Save