[fix] Slight user safety that was removed by accident

Yes, of course I tested this commit https://pl.kotl.in/tvB0rVplb
This commit is contained in:
Dominika 2021-01-09 13:37:33 -05:00
parent 7ba5b646be
commit dfe3db215c
No known key found for this signature in database
GPG Key ID: B4A5A6DCA70F861F
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ object DiscordNotifsCommand : ClientCommand(
name = "discordnotifs",
alias = arrayOf("webhook")
) {
private val urlRegex = Regex("^https://.*discord\\.com/api/webhooks/\\d+/.{68}")
private val urlRegex = Regex("^https://.*discord\\.com/api/webhooks/\\d+/.{68}$")
init {
literal("id") {