Skip to content

Commit

Permalink
🔀 Merge pull request #1351 from deneor/issue_1343
Browse files Browse the repository at this point in the history
[FIX] #1343 Search for items with cyrillic titles dosnt work
Fixes ##1343
  • Loading branch information
Lissy93 authored Nov 14, 2023
2 parents 50dc623 + 84454b0 commit 6a39aaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/Search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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));
};

Expand Down

1 comment on commit 6a39aaa

@vercel
Copy link

@vercel vercel bot commented on 6a39aaa Nov 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

dashy – ./

dashy-git-master-alicia.vercel.app
dashy-delta.vercel.app
dashy-alicia.vercel.app

Please sign in to comment.