Skip to content

Commit caa7dc5

Browse files
committed
exclude comma from search values
1 parent e90556d commit caa7dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libs/FastSearch.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type SearchableData<T> = {
1616
};
1717

1818
// There are certain characters appear very often in our search data (email addresses), which we don't need to search for.
19-
const charSetToSkip = new Set(['@', '.', '#', '$', '%', '&', '*', '+', '-', '/', ':', ';', '<', '=', '>', '?', '_', '~', '!', ' ']);
19+
const charSetToSkip = new Set(['@', '.', '#', '$', '%', '&', '*', '+', '-', '/', ':', ';', '<', '=', '>', '?', '_', '~', '!', ' ', ',']);
2020

2121
/**
2222
* Creates a new "FastSearch" instance. "FastSearch" uses a suffix tree to search for substrings in a list of strings.

0 commit comments

Comments
 (0)