From 4d24365d179dfa8a573f3843bb3b9f3f286838b3 Mon Sep 17 00:00:00 2001 From: AAA3A <89632044+AAA3A-AAA3A@users.noreply.github.com> Date: Thu, 4 Sep 2025 16:49:48 +0200 Subject: [PATCH] Update the invite Regex to match invites with backslashes / ignore promos (#6586) Co-authored-by: Twentysix <6267772+Twentysix26@users.noreply.github.com> --- redbot/core/utils/common_filters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/redbot/core/utils/common_filters.py b/redbot/core/utils/common_filters.py index 64397c115..ac02ec1cc 100644 --- a/redbot/core/utils/common_filters.py +++ b/redbot/core/utils/common_filters.py @@ -16,7 +16,9 @@ __all__ = [ # regexes URL_RE = re.compile(r"(https?|s?ftp)://(\S+)", re.I) -INVITE_URL_RE = re.compile(r"(discord\.(?:gg|io|me|li)|discord(?:app)?\.com\/invite)\/(\S+)", re.I) +INVITE_URL_RE = re.compile( + r"(?