Update metaBlacklist.ts

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

View File

@@ -7,7 +7,7 @@ const composer = new Composer<Context>();
const feature = composer.chatType(["group", "supergroup"]);
feature.hears(
/(facebook.com|meta.com|instagram.com|threads.net|whatsapp.com)/gi,
/(facebook\.com|meta\.com|instagram\.com|threads\.net|whatsapp\.com)/gi,
logHandle("blacklist-detection-meta"),
async (ctx: Context) => {
const GROUP_IDS = process.env.GROUP_IDS