Skip to content

Commit

Permalink
Merge pull request #135 from xsdlr/master
Browse files Browse the repository at this point in the history
fix search plugin match bug
  • Loading branch information
QingWei-Li authored Mar 17, 2017
2 parents c20f329 + cf9b7c9 commit bf1ae78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/search/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export function search (keywords) {
data = data.concat(Object.keys(INDEXS[key]).map(page => INDEXS[key][page]))
})

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

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

0 comments on commit bf1ae78

Please sign in to comment.