Skip to content

Commit

Permalink
chore(dotnet): translate Javascript words to csharp (#6321)
Browse files Browse the repository at this point in the history
There are some words that we can replace so we don't need to write csharp specific comments
  • Loading branch information
kblok authored Apr 30, 2021
1 parent dec9736 commit d9015b9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions utils/doclint/xmlDocumentation.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit d9015b9

Please sign in to comment.