diff --git a/processor/processor.go b/processor/processor.go index 88384b0..622a217 100644 --- a/processor/processor.go +++ b/processor/processor.go @@ -501,7 +501,7 @@ func EvalRegex(L *lua.LState) int { if len(matches) > 0 { matchesTable := L.NewTable() for i, match := range matches { - matchesTable.RawSetInt(i, lua.LString(match)) + matchesTable.RawSetString(fmt.Sprintf("%d", i), lua.LString(match)) evalRegexLogger.Debug("Set table[%d] = %q", i, match) } L.Push(matchesTable)