From e28aa399e5c8b4528ea5ca05ab41f4cbd0cba4aa Mon Sep 17 00:00:00 2001 From: Lucid Kobold <72232219+LucidKobold@users.noreply.github.com> Date: Thu, 3 Jul 2025 22:51:31 -0400 Subject: [PATCH] Update embedCheck.ts Update regex to escape special character . --- src/bot/features/embedCheck.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bot/features/embedCheck.ts b/src/bot/features/embedCheck.ts index 1076345..e8783c3 100644 --- a/src/bot/features/embedCheck.ts +++ b/src/bot/features/embedCheck.ts @@ -27,11 +27,11 @@ feature.on( if (embeds.length) { const metaLinks = embeds.filter(({ url }) => url.match( - /(facebook.com|meta.com|instagram.com|threads.net|whatsapp.com)/gi + /(facebook\.com|meta\.com|instagram\.com|threads\.net|whatsapp\.com)/gi ) ); const twitterLinks = embeds.filter(({ url }) => - url.match(/(x.com|twitter.com)/gi) + url.match(/(x\.com|twitter\.com)/gi) ); if (metaLinks.length && twitterLinks.length) {