Skip to content

Commit

Permalink
Fix regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
hugoalh committed Nov 20, 2024
1 parent b6890b3 commit 043bb3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _payload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const thresholdEmbedFooterText = 2048;
const thresholdEmbedTitle = 256;
const thresholdFiles = 10;
const thresholdUsername = 80;
const regexpGuildedWebhookURL = /^(?:https:\/\/media\.guilded\.gg\/webhooks\/)?(?<key>\d+\/(?:[\dA-Za-z][\dA-Za-z_-]*)?[\dA-Za-z])$/u;
const regexpGuildedWebhookURL = /^(?:https:\/\/media\.guilded\.gg\/webhooks\/)?(?<key>.+\/.+)$/u;
const regexpISO8601 = /^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$/;
//deno-lint-ignore default-param-last
export function resolveContent(content: string, contentLinksNoEmbed: string[] = [], truncator?: StringTruncator): string | undefined {
Expand Down

0 comments on commit 043bb3b

Please sign in to comment.