Fix some retarded bullshit
This commit is contained in:
@@ -508,7 +508,7 @@ func EvalRegex(L *lua.LState) int {
|
|||||||
|
|
||||||
matchesTable := L.NewTable()
|
matchesTable := L.NewTable()
|
||||||
for i, match := range matches {
|
for i, match := range matches {
|
||||||
matchesTable.RawSetString(fmt.Sprintf("%d", i), lua.LString(match))
|
matchesTable.RawSetInt(i, lua.LString(match))
|
||||||
evalRegexLogger.Debug("Set table[%d] = %q", i, match)
|
evalRegexLogger.Debug("Set table[%d] = %q", i, match)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user