Skip to content

Commit a8d7562

Browse files
samugidjmarinb
authored andcommitted
fixed split filter result array (that was always missing the last element)
1 parent 6dc9b29 commit a8d7562

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/liquid.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3025,7 +3025,7 @@ local function split( str, pattern )
30253025
end
30263026
end
30273027
until from == nil
3028-
if index < #str then
3028+
if index <= #str then
30293029
table.insert(result, string.sub(str, index))
30303030
end
30313031
return result

0 commit comments

Comments
 (0)