mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 15:23:48 +01:00
Fix string length comparison
This commit is contained in:
parent
27df865b6e
commit
0d10aa9f88
2
luon.lua
2
luon.lua
@ -32,7 +32,7 @@ function write(value, write)
|
||||
local to_fill = {}
|
||||
for object, count in pairs(count_objects(value)) do
|
||||
local type_ = type(object)
|
||||
if count >= 2 and (type_ ~= "string" or #reference + 2 >= #object) then
|
||||
if count >= 2 and (type_ ~= "string" or #reference + 2 < #object) then
|
||||
local ref = table_concat(reference)
|
||||
write(ref)
|
||||
write"="
|
||||
|
Loading…
Reference in New Issue
Block a user