diff options
author | 2022-08-16 18:44:39 -0400 | |
---|---|---|
committer | 2022-08-16 18:44:39 -0400 | |
commit | d8735bc057d2100ecabcd49827b94ae0ceaf224f (patch) | |
tree | 5999203fe58f41fa9298cfd60fc8347a1cc3abc4 | |
parent | Unified usage of flags kwarg (diff) |
Removed redundant capture group
-rw-r--r-- | botcore/utils/regex.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/botcore/utils/regex.py b/botcore/utils/regex.py index b13b0408..4f91d3e0 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\.)?" 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/ |