fix JSON parser on some rare utf8 representations
This patch is provided by @hchaojie and should fix #252.
This commit is contained in:
1 parent
cd2ee14b91
commit
c20bc91ba3
1 file changed
+2
@@ -326,6 +326,8 @@ local function grok_string(self, text, start, etc)
|
||||
elseif text:match('^\\t', i) then
|
||||
VALUE = VALUE .. "\t"
|
||||
i = i + 2
|
||||
elseif text:match('^\\\\', i) then
|
||||
i = i + 1
|
||||
else
|
||||
local hex = text:match('^\\u([0123456789aAbBcCdDeEfF][0123456789aAbBcCdDeEfF][0123456789aAbBcCdDeEfF][0123456789aAbBcCdDeEfF])', i)
|
||||
if hex then
|
||||
|
||||
Reference in new issue
Block a user