mirror of https://github.com/Lissy93/dashy.git
🔀 Merge pull request #1351 from deneor/issue_1343
[FIX] #1343 Search for items with cyrillic titles dosnt work Fixes ##1343
This commit is contained in:
commit
6a39aaac6b
|
@ -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…
Reference in New Issue