From 0bd32afbdf90aef4b3eaaa0b8959c1bf8b3db48a Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 11 Sep 2024 11:30:25 +0100 Subject: Update Discord invite regex to also match backslash before the invite code --- pydis_core/utils/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pydis_core/utils/regex.py') diff --git a/pydis_core/utils/regex.py b/pydis_core/utils/regex.py index de82a1ed..0901f1f1 100644 --- a/pydis_core/utils/regex.py +++ b/pydis_core/utils/regex.py @@ -11,7 +11,7 @@ DISCORD_INVITE = re.compile( r"discord([.,]|dot)li|" # or discord.li r"discord([.,]|dot)io|" # or discord.io. r"((?\S+)", # the invite code itself flags=re.IGNORECASE ) -- cgit v1.2.3