aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
Diffstat (limited to 'src/background')
-rw-r--r--src/background/completion/impl/BookmarkRepositoryImpl.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/background/completion/impl/BookmarkRepositoryImpl.ts b/src/background/completion/impl/BookmarkRepositoryImpl.ts
index f34c7d1..3b80b93 100644
--- a/src/background/completion/impl/BookmarkRepositoryImpl.ts
+++ b/src/background/completion/impl/BookmarkRepositoryImpl.ts
@@ -38,8 +38,8 @@ export default class CachedBookmarkRepository implements BookmarkRepository {
private filter(items: HistoryItem[], query: string) {
return items.filter(item => {
- return query.split(' ').some(keyword => {
- return item.title.toLowerCase().includes(keyword.toLowerCase()) || item.url.includes(keyword)
+ return query.split(' ').every(keyword => {
+ return item.title.toLowerCase().includes(keyword.toLowerCase()) || item.url!!.includes(keyword)
});
})
};