Use Liquid::Utils.to_s for join filter (#1897)

This commit is contained in:
Ian Ker-Seymer
2025-01-16 11:21:58 -05:00
committed by GitHub
parent 74af735f0e
commit 0ec52a40b5
2 changed files with 18 additions and 1 deletions
+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)