From 8330044eae8c7d40151538d7403f97ca22759640 Mon Sep 17 00:00:00 2001 From: ionite34 Date: Tue, 16 Aug 2022 19:11:29 -0400 Subject: Added comments for regex addition --- botcore/utils/regex.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'botcore/utils') diff --git a/botcore/utils/regex.py b/botcore/utils/regex.py index 4f91d3e0..de82a1ed 100644 --- a/botcore/utils/regex.py +++ b/botcore/utils/regex.py @@ -3,7 +3,7 @@ import re DISCORD_INVITE = re.compile( - r"(https?://)?(www\.)?" + r"(https?://)?(www\.)?" # Optional http(s) and www. r"(discord([.,]|dot)gg|" # Could be discord.gg/ r"discord([.,]|dot)com(/|slash)invite|" # or discord.com/invite/ r"discordapp([.,]|dot)com(/|slash)invite|" # or discordapp.com/invite/ -- cgit v1.2.3