From 6a0724e60f48d5a26099f62e61b053f75e230875 Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Thu, 3 Jul 2025 22:50:51 -0400 Subject: [PATCH] Update twitterBlacklist.ts Update regex to escape special character . --- src/bot/features/twitterBlacklist.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bot/features/twitterBlacklist.ts b/src/bot/features/twitterBlacklist.ts index cfb9ccb..522ea2b 100644 --- a/src/bot/features/twitterBlacklist.ts +++ b/src/bot/features/twitterBlacklist.ts @@ -7,7 +7,7 @@ const composer = new Composer(); const feature = composer.chatType(["group", "supergroup"]); feature.hears( - /(x.com|twitter.com)/gi, + /(x\.com|twitter\.com)/gi, logHandle("blacklist-detection-twitter"), async (ctx: Context) => { const GROUP_IDS = process.env.GROUP_IDS