Fix case sensitive #39

Merged
LucidKobold merged 3 commits from fix-case-sensitive into main 2025-04-23 13:43:08 -04:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit 457f310ee3 - Show all commits

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