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
This commit is contained in:
Darío Kondratiuk 2021-04-30 01:08:46 -03:00 committed by GitHub
parent dec973611c
commit d9015b99d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -123,6 +123,9 @@ function _wrapAndEscape(node, maxColumns = 0) {
});
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);
text = text.replace(/`([^`]*)`/g, (match, code) => `<c>${code.replace('<', '&lt;').replace('>', '&gt;')}</c>`);
text = text.replace(/ITimeoutError/, 'TimeoutException');
text = text.replace(/Promise/, 'Task');
const words = text.split(' ');
let line = '';
for (let i = 0; i < words.length; i++) {