mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
Enforce that source code uses a small subset of Unicode
This commit is contained in:
@@ -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}`);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user