From ff2051e4917266ee30b9e5cdc9ef17a450156b13 Mon Sep 17 00:00:00 2001 From: SigmaTheFox Date: Sat, 4 May 2024 17:58:34 +0200 Subject: [PATCH] sanitized report command? --- commands/report.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/report.js b/commands/report.js index 7b004d3..fff9d67 100644 --- a/commands/report.js +++ b/commands/report.js @@ -76,7 +76,7 @@ module.exports = { let messageURL = interaction.options.getString('message'); if ( - !/https?:\/\/(\w.*\.)?discord\.com\/channels\/[0-9].*\/[0-9].*\/[0-9].*\/?/i.test( + !/^https?:\/\/(\w.*\.)?discord\.com\/channels\/[0-9].*\/[0-9].*\/[0-9].*\/?$/i.test( messageURL ) )