Skip to content

Commit d9015b9

Browse files
authored
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
1 parent dec9736 commit d9015b9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/doclint/xmlDocumentation.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ function _wrapAndEscape(node, maxColumns = 0) {
123123
});
124124
text = text.replace(/(?<!`)\[(.*?)\]/g, (match, link) => `<see cref="${link}"/>`);
125125
text = text.replace(/`([^`]*)`/g, (match, code) => `<c>${code.replace('<', '&lt;').replace('>', '&gt;')}</c>`);
126+
text = text.replace(/ITimeoutError/, 'TimeoutException');
127+
text = text.replace(/Promise/, 'Task');
128+
126129
const words = text.split(' ');
127130
let line = '';
128131
for (let i = 0; i < words.length; i++) {

0 commit comments

Comments
 (0)