From 84454b0502f0928d68681b77204cd3124a00b3be Mon Sep 17 00:00:00 2001 From: Denis Savosin Date: Wed, 18 Oct 2023 11:55:38 +0300 Subject: [PATCH] Fix for Search for items with cyrillic titles dosnt work --- src/utils/Search.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Search.js b/src/utils/Search.js index 51da1411..b42b8553 100644 --- a/src/utils/Search.js +++ b/src/utils/Search.js @@ -24,7 +24,7 @@ const getDomainFromUrl = (url) => { */ const filterHelper = (compareStr, searchStr) => { if (!compareStr) return false; - const process = (input) => input?.toString().toLowerCase().replace(/[^\w\s]/gi, ''); + const process = (input) => input?.toString().toLowerCase().replace(/[^\w\s\p{Alpha}]/giu, ''); return process(searchStr).split(/\s/).every(word => process(compareStr).includes(word)); };