Skip to content

Commit

Permalink
算法更新
Browse files Browse the repository at this point in the history
  • Loading branch information
james committed Nov 11, 2024
1 parent 90b10a2 commit 462efc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filter/html.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ func TrimHtml(src string) string {
//去除所有尖括号内的HTML代码,并换成换行符
re, _ = regexp.Compile("<[\\S\\s]+?>")
src = re.ReplaceAllString(src, "\n")
//去除连续的换行符 会把包含 ss 的会员账号替换掉,导致搜索不出来数据
//去除连续的换行符
//re, _ = regexp.Compile("s{2,}")
//src = re.ReplaceAllString(src, "\n")
return strings.TrimSpace(src)
Expand Down

0 comments on commit 462efc0

Please sign in to comment.