Skip to content

Commit 24d1997

Browse files
authored
Merge pull request chenxianyu2015#13 from samugi/THREESCALE-7678-liquid-contains-fix
[THREESCALE-7678] fixes the "contains" operator when left_value is a table
2 parents 4e7067a + ed38281 commit 24d1997

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
@@ -2129,7 +2129,7 @@ function Interpreter:visit_BinOp( node )
21292129
if type(left_value) == "string" then
21302130
return string.find(left_value, left_value)
21312131
elseif type(left_value) == "table" then
2132-
for i, v in left_value do
2132+
for i, v in ipairs(left_value) do
21332133
if type(v) == "string" then
21342134
if string.find(v, right_value) then
21352135
return true

0 commit comments

Comments
 (0)