From 311c4bee3c2bdf9a74c3ed533f70d865086da213 Mon Sep 17 00:00:00 2001 From: camila314 <47485054+camila314@users.noreply.github.com> Date: Thu, 16 Nov 2023 11:14:39 -0600 Subject: [PATCH] my bad. this time i actually fixed it --- src/plugins/keywordNotify/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } },