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:
parent
dec973611c
commit
d9015b99d0
|
|
@ -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('<', '<').replace('>', '>')}</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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue