aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-09-06 14:18:17 +0100
committerGravatar Chris Lovering <[email protected]>2021-09-06 14:18:17 +0100
commitcace28f844fe6ff022dfff7e2409d34fbc3d8bf4 (patch)
tree72e93304da8d528c31c19596f19ab1aea3e3eab5
parentServer command now uses correct TalentPool attr (#1810) (diff)
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