Reported by: Andrew Lewis
local pat = "(.-)" .. delim .. "()"
local nb = 0
local lastPos
- for part, pos in string.gfind(str, pat) do
+ for part, pos in string.gmatch(str, pat) do
nb = nb + 1
result[nb] = part
lastPos = pos
local pat = "(.-)" .. delim .. "()"
local nb = 0
local lastPos
- for part, pos in string.gfind(str, pat) do
+ for part, pos in string.gmatch(str, pat) do
nb = nb + 1
result[nb] = part
lastPos = pos
local pat = "(.-)" .. delim .. "()"
local nb = 0
local lastPos
- for part, pos in string.gfind(str, pat) do
+ for part, pos in string.gmatch(str, pat) do
nb = nb + 1
result[nb] = part
lastPos = pos