From d915edea2fa51582531a9d9ba29c59949be4b117 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hanno=20J=2E=20G=C3=B6decke?= Date: Thu, 24 Oct 2024 10:53:58 +0200 Subject: [PATCH] exclude comma from search values --- src/libs/FastSearch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/FastSearch.ts b/src/libs/FastSearch.ts index 59d28dedd449..d514c269320c 100644 --- a/src/libs/FastSearch.ts +++ b/src/libs/FastSearch.ts @@ -16,7 +16,7 @@ type SearchableData = { }; // There are certain characters appear very often in our search data (email addresses), which we don't need to search for. -const charSetToSkip = new Set(['@', '.', '#', '$', '%', '&', '*', '+', '-', '/', ':', ';', '<', '=', '>', '?', '_', '~', '!', ' ']); +const charSetToSkip = new Set(['@', '.', '#', '$', '%', '&', '*', '+', '-', '/', ':', ';', '<', '=', '>', '?', '_', '~', '!', ' ', ',']); /** * Creates a new "FastSearch" instance. "FastSearch" uses a suffix tree to search for substrings in a list of strings.