From 043bb3be20c9f07be583f7442505b115b089743c Mon Sep 17 00:00:00 2001 From: hugoalh Date: Wed, 20 Nov 2024 16:38:13 +0800 Subject: [PATCH] Fix regular expression --- _payload.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_payload.ts b/_payload.ts index dc613a4..6c40be4 100644 --- a/_payload.ts +++ b/_payload.ts @@ -32,7 +32,7 @@ const thresholdEmbedFooterText = 2048; const thresholdEmbedTitle = 256; const thresholdFiles = 10; const thresholdUsername = 80; -const regexpGuildedWebhookURL = /^(?:https:\/\/media\.guilded\.gg\/webhooks\/)?(?\d+\/(?:[\dA-Za-z][\dA-Za-z_-]*)?[\dA-Za-z])$/u; +const regexpGuildedWebhookURL = /^(?:https:\/\/media\.guilded\.gg\/webhooks\/)?(?.+\/.+)$/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 {