From 582a39761966ef88fca070a46a4f3e1445530087 Mon Sep 17 00:00:00 2001 From: George Zeng <63271460+georgezzeng@users.noreply.github.com> Date: Tue, 12 Nov 2024 08:49:32 -0600 Subject: [PATCH] Add ignoreLocation option for substring matching --- web_ui/frontend/helpers/useFuse.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web_ui/frontend/helpers/useFuse.tsx b/web_ui/frontend/helpers/useFuse.tsx index 02347f70b..b3e16b513 100644 --- a/web_ui/frontend/helpers/useFuse.tsx +++ b/web_ui/frontend/helpers/useFuse.tsx @@ -44,6 +44,7 @@ function useFuse( ...fuseOptions, threshold: 0.2, keys: keys, + ignoreLocation: true, }; }, [fuseOptions, keys]);