fixed search bug
This commit is contained in:
parent
c475ac6fa8
commit
b8af3f8147
|
@ -59,6 +59,7 @@ func ParseSearch(value string) *searchOptions {
|
|||
case "folder" : opts.Conditions["dir"] = true
|
||||
case "file" : opts.Conditions["dir"] = false
|
||||
}
|
||||
|
||||
if len(filter) < 8 {
|
||||
continue
|
||||
}
|
||||
|
@ -90,7 +91,8 @@ func ParseSearch(value string) *searchOptions {
|
|||
opts.Terms = []string{unique}
|
||||
return opts
|
||||
}
|
||||
|
||||
re := regexp.MustCompile(` +`)
|
||||
value = re.ReplaceAllString(value, " ")
|
||||
opts.Terms = strings.Split(value, " ")
|
||||
return opts
|
||||
}
|
||||
|
|
|
@ -9,8 +9,6 @@
|
|||
"watch": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --watch --no-clean"
|
||||
},
|
||||
"dependencies": {
|
||||
"normalize.css": "^8.0.1",
|
||||
"file-loader": "^6.2.0",
|
||||
"ace-builds": "^1.4.7",
|
||||
"clipboard": "^2.0.4",
|
||||
"css-vars-ponyfill": "^2.4.3",
|
||||
|
|
Loading…
Reference in New Issue