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