From ea8f7362a19a3dba682af7ea880cb1b9cac741a4 Mon Sep 17 00:00:00 2001 From: Patrik Oldsberg Date: Wed, 21 Feb 2024 20:35:15 +0100 Subject: [PATCH] scripts/verify-links: allow all absolute URLs from changesets Signed-off-by: Patrik Oldsberg --- scripts/verify-links.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/verify-links.js b/scripts/verify-links.js index f685af191b..94ffc497cd 100755 --- a/scripts/verify-links.js +++ b/scripts/verify-links.js @@ -78,6 +78,9 @@ async function verifyUrl(basePath, absUrl, docPages) { } if (basePath.startsWith('.changeset/')) { + if (absUrl.match(/^https?:\/\//)) { + return undefined; + } return { url, basePath, problem: 'out-of-changeset' }; }