aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-09-06 15:22:08 +0200
committerGravatar GitHub <[email protected]>2021-09-06 15:22:08 +0200
commit26cb61d15f30dfa170bb9ef61a167376ee0e3c52 (patch)
tree72e93304da8d528c31c19596f19ab1aea3e3eab5
parentServer command now uses correct TalentPool attr (#1810) (diff)
parentAdd .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.py3
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