Fixes minor security vulnerability (#30948)

This commit is contained in:
Benedikt Johannes 2026-03-01 21:19:55 +01:00 committed by Shakker
parent dc816b84ea
commit e0b8bf9dfd
No known key found for this signature in database
1 changed files with 10 additions and 0 deletions

View File

@ -116,6 +116,16 @@ const ANGLE_BRACKET_MAP: Record<number, string> = {
0x27e9: ">", // mathematical right angle bracket
0xfe64: "<", // small less-than sign
0xfe65: ">", // small greater-than sign
0x00ab: "<", // left-pointing double angle quotation mark
0x00bb: ">", // right-pointing double angle quotation mark
0x300a: "<", // left double angle bracket
0x300b: ">", // right double angle bracket
0x27ea: "<", // mathematical left double angle bracket
0x27eb: ">", // mathematical right double angle bracket
0x276c: "<", // medium left-pointing angle bracket ornament
0x276d: ">", // medium right-pointing angle bracket ornament
0x276e: "<", // heavy left-pointing angle quotation mark ornament
0x276f: ">", // heavy right-pointing angle quotation mark ornament
};
function foldMarkerChar(char: string): string {