diff --git a/web/src/components/MemoList.tsx b/web/src/components/MemoList.tsx index 6641798c..27c456ed 100644 --- a/web/src/components/MemoList.tsx +++ b/web/src/components/MemoList.tsx @@ -33,7 +33,7 @@ const MemoList = () => { if (tagQuery) { const tagsSet = new Set(); - for (const t of Array.from(memo.content.match(TAG_REG) ?? [])) { + for (const t of Array.from(memo.content.match(new RegExp(TAG_REG, "g")) ?? [])) { const tag = t.replace(TAG_REG, "$1").trim(); const items = tag.split("/"); let temp = "";