From 7a0f529835ec5f3f09b0924848e0be9f0230d310 Mon Sep 17 00:00:00 2001 From: Janine vN Date: Sun, 13 Jul 2025 14:00:30 -0400 Subject: Update discord invite regex Allows for more than one `\` that occurs before the invite code, which is apparently valid. --- pydis_core/utils/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydis_core/utils/regex.py b/pydis_core/utils/regex.py index 88a4c52f..ba6b9b01 100644 --- a/pydis_core/utils/regex.py +++ b/pydis_core/utils/regex.py @@ -10,7 +10,7 @@ DISCORD_INVITE = re.compile( r"(gg|me)" # TLDs that embed within discord r"|com(\/|slash|\\)invite" # Only match com/invite r")" - r"(/|slash|\\)" # / or \ or 'slash' + r"(/|slash|\\+)" # / or 'slash' or 1+ of \ r"(?P\S+)", # the invite code itself flags=re.IGNORECASE ) -- cgit v1.2.3