diff --git a/luon.lua b/luon.lua index 661295c..f962f9d 100644 --- a/luon.lua +++ b/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"="