diff options
| author | 2020-07-30 19:03:33 +0200 | |
|---|---|---|
| committer | 2020-07-30 19:03:33 +0200 | |
| commit | 663eac8f9f30812f6ee6c95b134e5e62fa7273d6 (patch) | |
| tree | 574c3e601752f02eb16e921432cbb23901621898 | |
| parent | Change regex so it catches new discord URL (diff) | |
Use non-capturing group instead.
| -rw-r--r-- | bot/cogs/webhook_remover.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/webhook_remover.py b/bot/cogs/webhook_remover.py index 91bcaa1e9..1ed8072f2 100644 --- a/bot/cogs/webhook_remover.py +++ b/bot/cogs/webhook_remover.py @@ -8,7 +8,7 @@ from bot.bot import Bot from bot.cogs.moderation.modlog import ModLog from bot.constants import Channels, Colours, Event, Icons -WEBHOOK_URL_RE = re.compile(r"((?:https?://)?discord(app)?\.com/api/webhooks/\d+/)\S+/?", re.I) +WEBHOOK_URL_RE = re.compile(r"((?:https?://)?discord(?:app)\.com/api/webhooks/\d+/)\S+/?", re.I) ALERT_MESSAGE_TEMPLATE = ( "{user}, looks like you posted a Discord webhook URL. Therefore, your " |