优化搜索

pull/25/merge
Minho 2017-05-03 08:17:50 +08:00
parent ece059d5cd
commit ff7dfadcfe
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ func (c *SearchController) Index() {
//去除连续的换行符 //去除连续的换行符
re, _ = regexp.Compile("\\s{2,}") re, _ = regexp.Compile("\\s{2,}")
src = re.ReplaceAllString(src, "\n") src = re.ReplaceAllString(src, "\n")
r := []rune(src) r := []rune(src)
beego.Info(r) beego.Info(r)
if len(r) > 100 { if len(r) > 100 {