aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Senjan21 <[email protected]>2020-07-30 19:05:28 +0200
committerGravatar Senjan21 <[email protected]>2020-07-30 19:05:28 +0200
commit3586c1e187ecbee957084b2e2e6fbcf9bc2e2859 (patch)
treea1c54114dac6c111c7a8851aa68a901180ac1041
parentUse non-capturing group instead. (diff)
Missed `?` in regex.
-rw-r--r--bot/cogs/webhook_remover.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/webhook_remover.py b/bot/cogs/webhook_remover.py
index 1ed8072f2..ac9f7c20f 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 "