Skip to content

Commit

Permalink
fixed the message link regex validation for canary and beta users
Browse files Browse the repository at this point in the history
  • Loading branch information
GhomKrosmonaute committed Jun 26, 2024
1 parent fb99032 commit 428bc32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/argument.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ export async function resolveType(
case "message":
if (baseValue) {
const match =
/^https?:\/\/discord\.com\/channels\/\d+\/(\d+)\/(\d+)$/.exec(
/^https?:\/\/(?:www\.)?(?:ptb\.|canary\.)?(?:discord|discordapp)\.com\/channels\/\d+\/(\d+)\/(\d+)$/.exec(
baseValue,
)
if (match) {
Expand Down

0 comments on commit 428bc32

Please sign in to comment.