mirror of
https://github.com/rxi/lovebird.git
synced 2024-11-15 22:54:21 +00:00
Changed env.json to ignore keys which arn't strings or numbers
This commit is contained in:
parent
3b2e834711
commit
f7578fe07e
@ -337,7 +337,11 @@ lovebird.pages["env.json"] = [[
|
||||
"vars": [
|
||||
<?lua
|
||||
local keys = {}
|
||||
for k in pairs(t) do table.insert(keys, k) end
|
||||
for k in pairs(t) do
|
||||
if type(k) == "number" or type(k) == "string" then
|
||||
table.insert(keys, k)
|
||||
end
|
||||
end
|
||||
table.sort(keys)
|
||||
for _, k in pairs(keys) do
|
||||
local v = t[k]
|
||||
|
Loading…
Reference in New Issue
Block a user