Update search

This commit is contained in:
Rico Sta. Cruz 2017-08-29 03:27:03 +08:00
parent 1e1ae02835
commit 6cac94b06f
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ const Search = {
},
show (val) {
const keywords = val.split(' ')
const keywords = val.split(/[ \-_]/)
const selectors = keywords
.map(k => `[data-search-index~=${JSON.stringify(k)}]`)
.join('')