aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dennis Pham <[email protected]>2020-08-05 22:00:59 -0400
committerGravatar GitHub <[email protected]>2020-08-05 22:00:59 -0400
commit3bfb3f09bae0f218a06db5f518496be397ed4b66 (patch)
treef9940da4d129fc5f21ce7ff930f1b3a799a57c34
parentMerge pull request #1087 from python-discord/bug/backend/1080/cog-reload-canc... (diff)
Guild invite regex: Add support for dashes in the invite code
-rw-r--r--bot/utils/regex.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/regex.py b/bot/utils/regex.py
index d194f93cb..0d2068f90 100644
--- a/bot/utils/regex.py
+++ b/bot/utils/regex.py
@@ -7,6 +7,6 @@ INVITE_RE = re.compile(
r"discord(?:[\.,]|dot)me|" # or discord.me
r"discord(?:[\.,]|dot)io" # or discord.io.
r")(?:[\/]|slash)" # / or 'slash'
- r"([a-zA-Z0-9]+)", # the invite code itself
+ r"([a-zA-Z0-9\-]+)", # the invite code itself
flags=re.IGNORECASE
)