1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-10-27 20:34:16 +00:00

Json: Skip forward by 5 characters, not 4 for unicode sequences [#486]

This commit is contained in:
gnosygnu 2019-06-02 14:31:04 -04:00
parent a6ce48fffa
commit 641a17621f

View File

@ -103,7 +103,7 @@ public class Json_parser {
case Byte_ascii.Backslash:
++pos; // backslash
switch (src[pos]) {
case Byte_ascii.Ltr_u: pos += 4; break; // \uFFFF 4 hex-dec
case Byte_ascii.Ltr_u: pos += 5; break; // \uFFFF 1 u + 4 hex-dec; ISSUE#:486; DATE:2019-06-02
default: ++pos; break; // \? " \ / b f n r t
}
exact = false;