diff --git a/controllers/search.go b/controllers/search.go index d2cc02c8..97f72f3e 100644 --- a/controllers/search.go +++ b/controllers/search.go @@ -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 {