Enforce that source code uses a small subset of Unicode

This commit is contained in:
Alex Dima
2021-11-03 23:34:09 +01:00
parent 3247c31f6a
commit a704a69394
33 changed files with 141 additions and 55 deletions

View File

@@ -90,6 +90,7 @@ function getTagDocumentation(
if (!doc) {
return label;
}
// allow-any-unicode-next-line
return label + (doc.match(/\r\n|\n/g) ? ' \n' + processInlineTags(doc) : `${processInlineTags(doc)}`);
}
}
@@ -100,6 +101,7 @@ function getTagDocumentation(
if (!text) {
return label;
}
// allow-any-unicode-next-line
return label + (text.match(/\r\n|\n/g) ? ' \n' + text : `${text}`);
}