From 7d47282a84efe03c020cc08105ba90bd1286b8fd Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Wed, 20 Jul 2022 21:10:21 +0300 Subject: [PATCH] fix invite filter regex --- src/structure/components/observers/Automoderation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/structure/components/observers/Automoderation.js b/src/structure/components/observers/Automoderation.js index e52dc4a..361a1f1 100644 --- a/src/structure/components/observers/Automoderation.js +++ b/src/structure/components/observers/Automoderation.js @@ -60,7 +60,7 @@ module.exports = class AutoModeration extends Observer { this.executing = {}; this.regex = { - invite: /((discord)?\s*\.?\s*gg\s*|discord(app)?\.com\/invite)\/\s?(?[a-z0-9]+)/i, + invite: /((discord\s*\.?\s*gg\s*)|discord(app)?\.com\/invite)\/\s?(?[a-z0-9]+)/i, linkRegG: /(https?:\/\/(www\.)?)?(?([a-z0-9-]{1,63}\.)?([a-z0-9-]{2,63})(\.[a-z0-9-]{2,63})(\.[a-z0-9-]{2,63})?)(\/\S*)?/iug, linkReg: /(https?:\/\/(www\.)?)?(?([a-z0-9-]{1,63}\.)?([a-z0-9-]{2,63})(\.[a-z0-9-]{2,63})(\.[a-z0-9-]{2,63})?)(\/\S*)?/iu, mention: /<@!?(?[0-9]{18,22})>/,