Срочный багфикс

This commit is contained in:
Igor Timofeev
2017-09-04 21:54:41 +03:00
parent e09ff425af
commit 1ef787ecd7
2 changed files with 2 additions and 2 deletions

View File

@@ -275,7 +275,7 @@ local function doSerialize(array, prettyLook, indentationSymbol, indentationSymb
table.insert(text, key)
table.insert(text, "]")
elseif keyType == "string" then
if key:match("^%a") and key:match("%w+") then
if key:match("^%a") and key:match("^%w+$") then
table.insert(text, key)
else
table.insert(text, "[\"")