diff --git a/src/plugins/keywordNotify/index.tsx b/src/plugins/keywordNotify/index.tsx index b7370e0eb..73a9bf275 100644 --- a/src/plugins/keywordNotify/index.tsx +++ b/src/plugins/keywordNotify/index.tsx @@ -107,7 +107,7 @@ export default definePlugin({ }, applyRegexes(m) { - if (regexes.some(r => m.content.match(new RegExp(r))) && m != "") { + if (regexes.some(r => r != "" && m.content.match(new RegExp(r)))) { m.mentions.push(me); } },