From d000083b4126ec436b6662c402fed165b9a4769f Mon Sep 17 00:00:00 2001 From: Ajay Kumbhare Date: Sun, 23 Jul 2023 16:47:18 +0530 Subject: [PATCH] fix: hashtag filter for Unicode characters (#2017) --- web/src/components/MemoList.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/components/MemoList.tsx b/web/src/components/MemoList.tsx index c8ea8602..d4e07ab6 100644 --- a/web/src/components/MemoList.tsx +++ b/web/src/components/MemoList.tsx @@ -43,7 +43,7 @@ const MemoList: React.FC = (props: Props) => { } if (tagQuery) { const tagsSet = new Set(); - for (const t of Array.from(memo.content.match(new RegExp(TAG_REG, "g")) ?? [])) { + for (const t of Array.from(memo.content.match(new RegExp(TAG_REG, "gu")) ?? [])) { const tag = t.replace(TAG_REG, "$1").trim(); const items = tag.split("/"); let temp = "";