Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: hashtag filter for Unicode characters (#2017)

Ajay Kumbhared000083b4126
diff --git a/web/src/components/MemoList.tsx b/web/src/components/MemoList.tsx
index c8ea86026..d4e07ab63 100644
--- a/web/src/components/MemoList.tsx
+++ b/web/src/components/MemoList.tsx
@@ -43,7 +43,7 @@ const MemoList: React.FC<Props> = (props: Props) => {
}
if (tagQuery) {
const tagsSet = new Set<string>();
- 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 = "";