Skip to content

Commit 8330044

Browse files
committed
Added comments for regex addition
1 parent ef4564c commit 8330044

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

botcore/utils/regex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import re
44

55
DISCORD_INVITE = re.compile(
6-
r"(https?://)?(www\.)?"
6+
r"(https?://)?(www\.)?" # Optional http(s) and www.
77
r"(discord([.,]|dot)gg|" # Could be discord.gg/
88
r"discord([.,]|dot)com(/|slash)invite|" # or discord.com/invite/
99
r"discordapp([.,]|dot)com(/|slash)invite|" # or discordapp.com/invite/

0 commit comments

Comments
 (0)