From 5aa00d1e5ee8db531f796eb35d20f3ce99a34e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Wed, 12 May 2021 12:08:12 -0300 Subject: [PATCH] docs(dotnet): fix link regex on xmldocs (#6528) --- utils/doclint/xmlDocumentation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/doclint/xmlDocumentation.js b/utils/doclint/xmlDocumentation.js index 70387d5e22..ca8aca3cda 100644 --- a/utils/doclint/xmlDocumentation.js +++ b/utils/doclint/xmlDocumentation.js @@ -118,7 +118,7 @@ function _wrapAndEscape(node, maxColumns = 0) { let text = node.text; - text = text.replace(/\[(.*?)\]\((.*?)\)/g, (match, linkName, linkUrl) => { + text = text.replace(/\[([^\]]*)\]\((.*?)\)/g, (match, linkName, linkUrl) => { return `${linkName}`; }); text = text.replace(/(? ``);