Skip to content

Commit 84454b0

Browse files
committed
Fix for Search for items with cyrillic titles dosnt work
1 parent 8a821c2 commit 84454b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/Search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const getDomainFromUrl = (url) => {
2424
*/
2525
const filterHelper = (compareStr, searchStr) => {
2626
if (!compareStr) return false;
27-
const process = (input) => input?.toString().toLowerCase().replace(/[^\w\s]/gi, '');
27+
const process = (input) => input?.toString().toLowerCase().replace(/[^\w\s\p{Alpha}]/giu, '');
2828
return process(searchStr).split(/\s/).every(word => process(compareStr).includes(word));
2929
};
3030

0 commit comments

Comments
 (0)