mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-18 17:48:00 +08:00
修改命令
This commit is contained in:
@@ -70,7 +70,7 @@ func (c *SearchController) Index() {
|
||||
src = re.ReplaceAllString(src, "\n")
|
||||
|
||||
r := []rune(src)
|
||||
beego.Info(r)
|
||||
|
||||
if len(r) > 100 {
|
||||
src = string(r[:100])
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user