mirror of
https://github.com/Lissy93/dashy.git
synced 2025-07-15 17:54:49 +02:00
Fix for Search for items with cyrillic titles dosnt work
This commit is contained in:
parent
8a821c2a31
commit
84454b0502
@ -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));
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user