From 93ce65f58e1b79a7a887ed82c64dd976596b6bc0 Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Sat, 23 Nov 2024 21:11:13 +0000 Subject: Escape backslashes in invite regex --- 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 9d245c9b..8726020d 100644 --- a/pydis_core/utils/regex.py +++ b/pydis_core/utils/regex.py @@ -3,7 +3,7 @@ import re DISCORD_INVITE = re.compile( - r"(https?://)?(www\.)?" # Optional http(s) and www. + r"(https?:\/\/)?(www\.)?" # Optional http(s) and www. r"(discord(app)?)?" # Optional discord(app) r"([.,]|dot)" # Various characters to cover dots r"(" -- cgit v1.2.3