mirror of
https://gitee.com/docsifyjs/docsify.git
synced 2024-12-01 03:30:00 +08:00
commit
bf1ae7802d
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user