Skip to content

Commit bf1ae78

Browse files
authored
Merge pull request #135 from xsdlr/master
fix search plugin match bug
2 parents c20f329 + cf9b7c9 commit bf1ae78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/search/search.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function search (keywords) {
7373
data = data.concat(Object.keys(INDEXS[key]).map(page => INDEXS[key][page]))
7474
})
7575

76-
keywords = keywords.trim().split(/[\s\-\,\\/]+/)
76+
keywords = [].concat(keywords, keywords.trim().split(/[\s\-\,\\/]+/))
7777

7878
for (let i = 0; i < data.length; i++) {
7979
const post = data[i]

0 commit comments

Comments
 (0)