fix: tag filter (#266)

This commit is contained in:
boojack 2022-10-04 21:02:07 +08:00 committed by GitHub
parent e0f95686f3
commit ca2557eb7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -33,7 +33,7 @@ const MemoList = () => {
if (tagQuery) { if (tagQuery) {
const tagsSet = new Set<string>(); const tagsSet = new Set<string>();
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 tag = t.replace(TAG_REG, "$1").trim();
const items = tag.split("/"); const items = tag.split("/");
let temp = ""; let temp = "";