Update search
This commit is contained in:
parent
1e1ae02835
commit
6cac94b06f
|
@ -87,7 +87,7 @@ const Search = {
|
||||||
},
|
},
|
||||||
|
|
||||||
show (val) {
|
show (val) {
|
||||||
const keywords = val.split(' ')
|
const keywords = val.split(/[ \-_]/)
|
||||||
const selectors = keywords
|
const selectors = keywords
|
||||||
.map(k => `[data-search-index~=${JSON.stringify(k)}]`)
|
.map(k => `[data-search-index~=${JSON.stringify(k)}]`)
|
||||||
.join('')
|
.join('')
|
||||||
|
|
Loading…
Reference in New Issue