From d1fa01567d8e8de963d66a509eab36d197b4efc6 Mon Sep 17 00:00:00 2001 From: Sat Naing Date: Fri, 16 Sep 2022 13:41:41 +0630 Subject: [PATCH] Update min character match for search to 2 --- src/components/Search.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/Search.tsx b/src/components/Search.tsx index 2bdbf8e..92096cb 100644 --- a/src/components/Search.tsx +++ b/src/components/Search.tsx @@ -36,6 +36,7 @@ export default function SearchBar({ searchList }: Props) { const fuse = new Fuse(searchList, { keys: ["title", "description"], includeMatches: true, + minMatchCharLength: 2, threshold: 0.5, });