Fix some shit

This commit is contained in:
2025-10-23 00:19:07 +02:00
parent 48729cdfa4
commit 346afdd143

View File

@@ -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)