both key and value need to be expanded for tables.
This commit is contained in:
parent
92b704ed96
commit
26008f0bed
@ -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
|
||||
end
|
||||
return value
|
||||
|
||||
return res_table
|
||||
else
|
||||
return expandvalue(value)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user