Skip to content

Commit

Permalink
sanitized report command?
Browse files Browse the repository at this point in the history
  • Loading branch information
SigmaTheFox committed May 4, 2024
1 parent 465272f commit ff2051e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
)
Expand Down

0 comments on commit ff2051e

Please sign in to comment.