Hallucinate fixes to some tests

This commit is contained in:
2025-10-21 10:38:39 +02:00
parent 2459988ff0
commit 635ca463c0
2 changed files with 27 additions and 40 deletions

View File

@@ -487,8 +487,8 @@ func EvalRegex(L *lua.LState) int {
evalRegexLogger := processorLogger.WithPrefix("evalRegex")
evalRegexLogger.Debug("Lua evalRegex function called")
input := L.ToString(1)
pattern := L.ToString(2)
pattern := L.ToString(1)
input := L.ToString(2)
evalRegexLogger.Debug("Pattern: %q, Input: %q", pattern, input)
@@ -496,6 +496,7 @@ func EvalRegex(L *lua.LState) int {
matches := re.FindStringSubmatch(input)
evalRegexLogger.Debug("Go regex matches: %v (count: %d)", matches, len(matches))
evalRegexLogger.Debug("Matches is nil: %t", matches == nil)
if len(matches) > 0 {
matchesTable := L.NewTable()