diff options
author | 2021-09-06 15:22:08 +0200 | |
---|---|---|
committer | 2021-09-06 15:22:08 +0200 | |
commit | 26cb61d15f30dfa170bb9ef61a167376ee0e3c52 (patch) | |
tree | 72e93304da8d528c31c19596f19ab1aea3e3eab5 | |
parent | Server command now uses correct TalentPool attr (#1810) (diff) | |
parent | Add .gg/ to invite filter regex (diff) |
Merge pull request #1814 from python-discord/Expand-fitlers-to-.gg-
Add .gg/ to invite filter regex
-rw-r--r-- | bot/utils/regex.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bot/utils/regex.py b/bot/utils/regex.py index a8efe1446..7bad1e627 100644 --- a/bot/utils/regex.py +++ b/bot/utils/regex.py @@ -6,7 +6,8 @@ INVITE_RE = re.compile( r"discordapp(?:[\.,]|dot)com(?:\/|slash)invite|" # or discordapp.com/invite/ r"discord(?:[\.,]|dot)me|" # or discord.me r"discord(?:[\.,]|dot)li|" # or discord.li - r"discord(?:[\.,]|dot)io" # or discord.io. + r"discord(?:[\.,]|dot)io|" # or discord.io. + r"(?:[\.,]|dot)gg" # or .gg/ r")(?:[\/]|slash)" # / or 'slash' r"([a-zA-Z0-9\-]+)", # the invite code itself flags=re.IGNORECASE |