From 562744ae38206dcd380c2ac50433c912a4923a83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 28 Mar 2019 16:06:51 +0800 Subject: =?UTF-8?q?=E4=BF=AE=E6=AD=A3json=E8=A7=A3=E6=9E=90=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/src/json/decode.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server') diff --git a/server/src/json/decode.lua b/server/src/json/decode.lua index fcc40de5..c692d4d3 100644 --- a/server/src/json/decode.lua +++ b/server/src/json/decode.lua @@ -110,8 +110,8 @@ local Token = P String = '"' * Cs(V'Char'^0) * '"', Char = V'Esc' + (1 - P'"' - P'\t' - V'Nl'), Esc = P'\\' * C(S'tnr"\\') / EscMap, - Hash = V'Spnl' * '{' * V'Spnl' * HashTable((V'Object' + P',')^0) * V'Spnl' * P'}' * V'Spnl', - Array = V'Spnl' * '[' * V'Spnl' * Ct((V'Value' + P',')^0) * V'Spnl' * P']' * V'Spnl', + Hash = V'Spnl' * '{' * V'Spnl' * HashTable((V'Object' + P',' * V'Spnl')^0) * V'Spnl' * P'}' * V'Spnl', + Array = V'Spnl' * '[' * V'Spnl' * Ct((V'Value' * V'Spnl' + P',' * V'Spnl')^0) * V'Spnl' * P']' * V'Spnl', Object = V'Spnl' * V'Key' * V'Spnl' * V'Value' * V'Spnl', Key = V'String' * V'Spnl' * ':', Value = V'Hash' + V'Array' + V'Bool' + V'Null' + V'String' + V'Float' + V'Int', -- cgit v1.2.3