diff options
| author | 2020-07-30 19:10:18 +0200 | |
|---|---|---|
| committer | 2020-07-30 19:10:18 +0200 | |
| commit | 6ee96040febd8ba1f0b1f781ca996c1097f4b87c (patch) | |
| tree | 13414c5c7e63772162bd6b6faf388ede839fbcc8 | |
| parent | Missed `?` in regex. (diff) | |
Use full flag name for case-insensitivity
requested by lemon
| -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 ac9f7c20f..5812da87c 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.IGNORECASE) ALERT_MESSAGE_TEMPLATE = ( "{user}, looks like you posted a Discord webhook URL. Therefore, your " |