Fix string length comparison

master
Lars Mueller 2021-07-07 20:02:11 +02:00
parent 27df865b6e
commit 0d10aa9f88
1 changed files with 1 additions and 1 deletions

View File

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