Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Fix for Search for items with cyrillic titles dosnt work

Denis Savosin84454b0502f0
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));
};