Fix string length comparison

This commit is contained in:
Lars Mueller 2021-07-07 20:02:11 +02:00
parent 27df865b6e
commit 0d10aa9f88

@ -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"="