Skip to content

Commit

Permalink
exclude comma from search values
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Oct 24, 2024
1 parent 8e13bcc commit d915ede
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libs/FastSearch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type SearchableData<T> = {
};

// 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.
Expand Down

0 comments on commit d915ede

Please sign in to comment.