Made regex case insensitive

This commit is contained in:
Lucid Kobold
2025-04-23 13:37:20 -04:00
parent bf39e3f069
commit 457f310ee3
2 changed files with 2 additions and 2 deletions

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(
/(facebook.com|meta.com|instagram.com|threads.net|whatsapp.com)/g, /(facebook.com|meta.com|instagram.com|threads.net|whatsapp.com)/gi,
logHandle("blacklist-detection-meta"), logHandle("blacklist-detection-meta"),
async (ctx: Context) => { async (ctx: Context) => {
const GROUP_IDS = process.env.GROUP_IDS const GROUP_IDS = process.env.GROUP_IDS

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)/g, /(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