mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-20 10:48:00 +08:00
优化搜索
This commit is contained in:
@@ -68,7 +68,7 @@ func (c *SearchController) Index() {
|
||||
//去除连续的换行符
|
||||
re, _ = regexp.Compile("\\s{2,}")
|
||||
src = re.ReplaceAllString(src, "\n")
|
||||
|
||||
|
||||
r := []rune(src)
|
||||
beego.Info(r)
|
||||
if len(r) > 100 {
|
||||
|
Reference in New Issue
Block a user