mirror of
https://github.com/appgurueu/modlib.git
synced 2024-12-23 05:42:28 +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