From 006bed7825066dcb6bb470534e3eafaee783dfd2 Mon Sep 17 00:00:00 2001 From: igor Date: Wed, 10 Jan 2018 18:58:11 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=20=D1=81=D0=BB=D1=83=D1=87=D0=B0?= =?UTF-8?q?=D0=B9=20=D0=BD=D0=B5=D1=83=D0=BF=D0=BE=D1=80=D1=8F=D0=B4=D0=BE?= =?UTF-8?q?=D1=87=D0=B5=D0=BD=D0=BD=D1=8B=D1=85=20=D0=BD=D1=83=D0=BC=D0=B5?= =?UTF-8?q?=D1=80=D0=B8=D1=87=D0=B5=D1=81=D0=BA=D0=B8=D1=85=20=D0=B8=D0=BD?= =?UTF-8?q?=D0=B4=D0=B5=D0=BA=D1=81=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications.cfg | 2 +- lib/advancedLua.lua | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/Applications.cfg b/Applications.cfg index de7ae39d..ce251ab7 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -253,7 +253,7 @@ url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/lib/advancedLua.lua", type="Library", preloadFile=true, - version=1.34, + version=1.35, }, { path="/lib/web.lua", diff --git a/lib/advancedLua.lua b/lib/advancedLua.lua index 2b2432aa..554b36bf 100755 --- a/lib/advancedLua.lua +++ b/lib/advancedLua.lua @@ -285,13 +285,10 @@ function table.serialize(array, prettyLook, indentationWidth, indentUsingTabs, r end if keyType == "number" then - if not prettyLook then - table.insert(result, "[") - table.insert(result, key) - table.insert(result, "]") - - table.insert(result, equalsSymbol) - end + table.insert(result, "[") + table.insert(result, key) + table.insert(result, "]") + table.insert(result, equalsSymbol) elseif keyType == "string" then -- Короч, если типа начинается с буковки, а также если это алфавитно-нумерическая поеботня if prettyLook and key:match("^%a") and key:match("^[%w%_]+$") then