mirror of
https://github.com/codex-team/codex.docs.git
synced 2025-07-19 13:19:42 +02:00
Update search.ts
This commit is contained in:
parent
e237f27eb8
commit
6db7fc876c
1 changed files with 3 additions and 1 deletions
|
@ -149,7 +149,9 @@ class Search {
|
|||
const pagesList: {[key: string]: number} = {};
|
||||
|
||||
Object.keys(this.words)
|
||||
.filter(word => words.indexOf(word) !== -1)
|
||||
.filter(word => {
|
||||
return !!words.filter(searchWord => word.indexOf(searchWord) !== -1).length
|
||||
})
|
||||
.forEach(word => {
|
||||
Object.keys(this.words[word])
|
||||
.forEach(pageId => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue