From 8ab224562a8c5aa375e9c51114cb49a3cce6c4fb Mon Sep 17 00:00:00 2001 From: camila314 <47485054+camila314@users.noreply.github.com> Date: Wed, 15 Nov 2023 23:06:49 -0600 Subject: [PATCH] fix newly generated rule causing mass pings --- 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 b32af3370..b7370e0eb 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)))) { + if (regexes.some(r => m.content.match(new RegExp(r))) && m != "") { m.mentions.push(me); } },