Skip to content

Commit 7bef280

Browse files
committed
docs/amv2: update LinkRegex (as of several releases ago)
Signed-off-by: Luca Zeuch <[email protected]>
1 parent dc45475 commit 7bef280

File tree

1 file changed

+1
-1
lines changed
  • content/docs/moderation/advanced-automoderator

1 file changed

+1
-1
lines changed

content/docs/moderation/advanced-automoderator/triggers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ This trigger will fire when a message triggers Discord's Automod.
305305
<!-- footnotes -->
306306

307307
[^1]: The regular expression used to match links is the following:<br>
308-
``(?i)([a-z\d]+://)([\w_-]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])``
308+
``(?i)([a-z\d]+:[//])([\w-._~:/?#\[\]@!$&'()*+,;%=]+(?:(?:\.[\w_-]+)+))([\w.,@?^=%&:/~+#-]*[\w@?^=%&/~+#-])``
309309

310310
[^2]: Under the hood, the bot will only check the last 1000 messages in the channel. If you have a high-traffic channel
311311
in combination with an extremely long time frame, the bot could (theoretically) miss some messages.

0 commit comments

Comments
 (0)