Skip to content

Commit 580f3cc

Browse files
committed
fix: limit search threshold
1 parent ccd3d6d commit 580f3cc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/classes/SearchDialog.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class SearchDialog {
7474
this.haystack = new Fuse(this.suggestions, {
7575
keys: [{ name: "text", weight: 3 }, "href"],
7676
includeScore: true,
77+
threshold: 0.5,
7778
});
7879

7980
// Open event listeners

0 commit comments

Comments
 (0)