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)