both key and value need to be expanded for tables.

This commit is contained in:
Tom van Dijck 2015-07-14 15:11:43 -07:00
parent 92b704ed96
commit 26008f0bed

View File

@ -135,10 +135,18 @@
function recurse(value)
if type(value) == "table" then
local res_table = {}
for k, v in pairs(value) do
value[k] = recurse(v)
if tonumber(k) ~= nil then
res_table[k] = recurse(v, e)
else
local nk = recurse(k, e);
res_table[nk] = recurse(v, e)
end
return value
end
return res_table
else
return expandvalue(value)
end