diff options
author | 2020-08-05 22:00:59 -0400 | |
---|---|---|
committer | 2020-08-05 22:00:59 -0400 | |
commit | 3bfb3f09bae0f218a06db5f518496be397ed4b66 (patch) | |
tree | f9940da4d129fc5f21ce7ff930f1b3a799a57c34 | |
parent | Merge 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.py | 2 |
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 ) |