Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(dotnet): fix link regex on xmldocs (#6528)

Darío Kondratiuk5aa00d1e5ee8
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 `<a href="${linkUrl}">${linkName}</a>`;
});
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);