2
0
mirror of https://github.com/gchq/CyberChef synced 2026-01-10 04:23:42 +00:00

Reduced byte length in 'Unescape Unicode Characters'

This commit is contained in:
n1474335
2018-02-16 13:33:33 +00:00
parent 5a2a649d8e
commit 5b1ac3de18

View File

@@ -27,7 +27,7 @@ const Unicode = {
*/
runUnescape: function(input, args) {
let prefix = Unicode._prefixToRegex[args[0]],
regex = new RegExp(prefix+"([a-f\\d]{4,6})", "ig"),
regex = new RegExp(prefix+"([a-f\\d]{4})", "ig"),
output = "",
m,
i = 0;