aboutsummaryrefslogtreecommitdiffstats
path: root/botcore
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-08-16 18:31:38 -0400
committerGravatar ionite34 <[email protected]>2022-08-16 18:31:38 -0400
commit360ef04dba45950c013e4aee9ab63d0dc5386000 (patch)
tree4f2bb809b8ac3d4d8e87102d4a71fedbbd5c8f68 /botcore
parentExpanded regex testing for discord invites (diff)
Removed a redundant regex character class
Diffstat (limited to 'botcore')
-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 e074a342..76311ca7 100644
--- a/botcore/utils/regex.py
+++ b/botcore/utils/regex.py
@@ -11,7 +11,7 @@ DISCORD_INVITE = re.compile(
r"discord([.,]|dot)li|" # or discord.li
r"discord([.,]|dot)io|" # or discord.io.
r"((?<!\w)([.,]|dot))gg" # or .gg/
- r")([/]|slash)" # / or 'slash'
+ r")(/|slash)" # / or 'slash'
r"(?P<invite>\S+)", # the invite code itself
flags=re.IGNORECASE
)