Update twitterBlacklist.ts

Update regex to escape special character .
This commit is contained in:
Lucid Kobold
2025-07-03 22:50:51 -04:00
committed by GitHub
parent 9c839955bb
commit 6a0724e60f

View File

@@ -7,7 +7,7 @@ const composer = new Composer<Context>();
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