Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
fix(xmldocs): over-greedy regex for md links and clean-up (#5798)
Anže Vodovnik43de259522b0
diff --git a/utils/doclint/generateDotnetApi.js b/utils/doclint/generateDotnetApi.jsindex 4e4be34761..2d25b22ae2 100644--- a/utils/doclint/generateDotnetApi.js+++ b/utils/doclint/generateDotnetApi.js@@ -364,7 +364,7 @@ function generateEnumNameIfApplicable(member, name, type, parent) {function renderMethod(member, parent, output, name) {const typeResolve = (type) => translateType(type, parent, (t) => {let newName = `${parent.name}${translateMemberName(member.kind, member.name, null)}Result`;- documentedResults.set(newName, `Result of calling <see cref="${translateMemberName("interface", parent.name)}.${translateMemberName(member.kind, member.name, member)}" />.`);+ documentedResults.set(newName, `Result of calling <see cref="${translateMemberName("interface", parent.name)}.${translateMemberName(member.kind, member.name, member)}"/>.`);return newName;});diff --git a/utils/doclint/templates/interface.cs b/utils/doclint/templates/interface.csindex b792a2cd13..25f9c76536 100644--- a/utils/doclint/templates/interface.cs+++ b/utils/doclint/templates/interface.cs@@ -39,6 +39,7 @@ using System.Globalization;using System.IO;using System.Runtime.Serialization;using System.Text.Json;+using System.Text.Json.Serialization;using System.Text.RegularExpressions;using System.Threading;using System.Threading.Tasks;diff --git a/utils/doclint/xmlDocumentation.js b/utils/doclint/xmlDocumentation.jsindex 2f27f76c1b..64bc6e62c5 100644--- a/utils/doclint/xmlDocumentation.js+++ b/utils/doclint/xmlDocumentation.js@@ -118,11 +118,11 @@ function _wrapAndEscape(node, maxColumns = 0) {let text = node.text;- text = text.replace(/`([^`]*)`/g, (match, code) => `<c>${code.replace('<', '<').replace('>', '>')}</c>`);- 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}" />`);+ text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);+ text = text.replace(/`([^`]*)`/g, (match, code) => `<c>${code.replace('<', '<').replace('>', '>')}</c>`);const words = text.split(' ');let line = '';for (let i = 0; i < words.length; i++) {