diff options
-rw-r--r-- | src/luarocks/util.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/util.lua b/src/luarocks/util.lua index 562953d9..3fea9a13 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
@@ -283,7 +283,7 @@ function split_string(str, delim, maxNb) | |||
283 | local pat = "(.-)" .. delim .. "()" | 283 | local pat = "(.-)" .. delim .. "()" |
284 | local nb = 0 | 284 | local nb = 0 |
285 | local lastPos | 285 | local lastPos |
286 | for part, pos in string.gfind(str, pat) do | 286 | for part, pos in string.gmatch(str, pat) do |
287 | nb = nb + 1 | 287 | nb = nb + 1 |
288 | result[nb] = part | 288 | result[nb] = part |
289 | lastPos = pos | 289 | lastPos = pos |