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"]); const feature = composer.chatType(["group", "supergroup"]);
feature.hears( feature.hears(
/(x.com|twitter.com)/gi, /(x\.com|twitter\.com)/gi,
logHandle("blacklist-detection-twitter"), logHandle("blacklist-detection-twitter"),
async (ctx: Context) => { async (ctx: Context) => {
const GROUP_IDS = process.env.GROUP_IDS const GROUP_IDS = process.env.GROUP_IDS