mirror of https://github.com/usememos/memos.git
fix: shoutcut tag filter handle mutiple tags (#608)
* fix: shoutcut tag filter handle mutiple tags * not edit parser
This commit is contained in:
parent
f982e83d0a
commit
d8bf55efb2
|
|
@ -156,7 +156,7 @@ export const checkShouldShowMemo = (memo: Memo, filter: Filter) => {
|
||||||
if (type === "TAG") {
|
if (type === "TAG") {
|
||||||
let contained = true;
|
let contained = true;
|
||||||
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 = "";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue