Skip to content

Commit 54c183d

Browse files
committed
Fix bug in Split Strings
1 parent 3f90f15 commit 54c183d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/prometheus/steps/SplitStrings.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ local function generateTableConcatNode(chunks, data)
8282
table.insert(chunkNodes, Ast.TableEntry(Ast.StringExpression(chunk)));
8383
end
8484
local tb = Ast.TableConstructorExpression(chunkNodes);
85+
data.scope:addReferenceToHigherScope(data.tableConcatScope, data.tableConcatId);
8586
return Ast.FunctionCallExpression(Ast.VariableExpression(data.tableConcatScope, data.tableConcatId), {tb});
8687
end
8788

0 commit comments

Comments
 (0)