Use Liquid::Utils.to_s in join filter

This commit is contained in:
Ian Ker-Seymer
2025-01-15 18:46:59 -05:00
parent 4b65a28722
commit 11c2dba8fa
+12 -1
View File
@@ -1063,7 +1063,18 @@ module Liquid
end
def join(glue)
to_a.join(glue.to_s)
first = true
output = +""
@input.each do |item|
if first
first = false
else
output << glue
end
output << Liquid::Utils.to_s(item)
end
output
end
def concat(args)