mirror of
https://github.com/gchq/CyberChef
synced 2025-12-11 05:43:28 +00:00
Added support for astral characters to charcode ops
This commit is contained in:
@@ -91,7 +91,7 @@ const HTML = {
|
||||
const bite = HTML._entityToByte[m[1]];
|
||||
if (bite) {
|
||||
output += Utils.chr(bite);
|
||||
} else if (!bite && m[1][0] === "#" && m[1].length > 1 && /^#\d{1,5}$/.test(m[1])) {
|
||||
} else if (!bite && m[1][0] === "#" && m[1].length > 1 && /^#\d{1,6}$/.test(m[1])) {
|
||||
// Numeric entity (e.g. )
|
||||
const num = m[1].slice(1, m[1].length);
|
||||
output += Utils.chr(parseInt(num, 10));
|
||||
|
||||
Reference in New Issue
Block a user