aboutsummaryrefslogtreecommitdiff
path: root/src/background
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-04-13 18:41:02 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2020-04-13 18:41:02 +0900
commitc48c7201adba45af5d72922e0aa5dda455548a84 (patch)
treec4260ac22fd17ab188a6542bfb03ed9d7c09f059 /src/background
parent34a569d73638dd10162050047d23cd04d286f4bc (diff)
Fix bookmark completion on open command
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)
});
})
};