aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-08-16 19:11:29 -0400
committerGravatar ionite34 <[email protected]>2022-08-16 19:11:29 -0400
commit8330044eae8c7d40151538d7403f97ca22759640 (patch)
tree199ada71b776c5985103dda5e4708ed996dc66c1
parentVersion bump and changelog (diff)
Added comments for regex addition
-rw-r--r--botcore/utils/regex.py2
1 files changed, 1 insertions, 1 deletions
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/