mirror of
https://github.com/ChenQihan666/MyBlog-Next.git
synced 2026-08-14 11:29:33 +08:00
Update min character match for search to 2
This commit is contained in:
@@ -36,6 +36,7 @@ export default function SearchBar({ searchList }: Props) {
|
|||||||
const fuse = new Fuse(searchList, {
|
const fuse = new Fuse(searchList, {
|
||||||
keys: ["title", "description"],
|
keys: ["title", "description"],
|
||||||
includeMatches: true,
|
includeMatches: true,
|
||||||
|
minMatchCharLength: 2,
|
||||||
threshold: 0.5,
|
threshold: 0.5,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user