From 38c2fe90db7eb25c144f04def468a213a91a739f Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 3 Apr 2024 17:51:12 +0200 Subject: [PATCH] Update cli.js --- utils/doclint/cli.js | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/doclint/cli.js b/utils/doclint/cli.js index b161999e2d..37ae90ea4c 100755 --- a/utils/doclint/cli.js +++ b/utils/doclint/cli.js @@ -221,6 +221,7 @@ async function run() { } if (!node.text) return; + // Match links in a lax way (.+), so they can include spaces, backticks etc. for (const [, mdLinkName, mdLink] of node.text.matchAll(/\[(.+)\]\((.*?)\)/g)) { const isExternal = mdLink.startsWith('http://') || mdLink.startsWith('https://'); if (isExternal)