From ca2557eb7edab5329c61dd66910aea3e92bf0b17 Mon Sep 17 00:00:00 2001 From: boojack Date: Tue, 4 Oct 2022 21:02:07 +0800 Subject: [PATCH] fix: tag filter (#266) --- 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 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 = "";