From d9015b99d02379656325a5dc2d9f2a829e366c1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Fri, 30 Apr 2021 01:08:46 -0300 Subject: [PATCH] chore(dotnet): translate Javascript words to csharp (#6321) There are some words that we can replace so we don't need to write csharp specific comments --- utils/doclint/xmlDocumentation.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/doclint/xmlDocumentation.js b/utils/doclint/xmlDocumentation.js index 64bc6e62c5870..70387d5e2243c 100644 --- a/utils/doclint/xmlDocumentation.js +++ b/utils/doclint/xmlDocumentation.js @@ -123,6 +123,9 @@ function _wrapAndEscape(node, maxColumns = 0) { }); text = text.replace(/(? ``); text = text.replace(/`([^`]*)`/g, (match, code) => `${code.replace('<', '<').replace('>', '>')}`); + text = text.replace(/ITimeoutError/, 'TimeoutException'); + text = text.replace(/Promise/, 'Task'); + const words = text.split(' '); let line = ''; for (let i = 0; i < words.length; i++) {