diff options
author | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2012-04-13 15:58:39 -0300 |
---|---|---|
committer | Ignacio Burgueño <ignaciob@inconcertcc.com> | 2012-04-13 15:58:39 -0300 |
commit | 145df6f63953d2d43ef668fb5a4e5b9adf3eda0d (patch) | |
tree | a9179a26037ec783ea061fb0236579f84a951dd4 /src | |
parent | ef3d1d3e38a8e7d84af68cfc7ff10fc0fad2e3ee (diff) | |
download | luarocks-145df6f63953d2d43ef668fb5a4e5b9adf3eda0d.tar.gz luarocks-145df6f63953d2d43ef668fb5a4e5b9adf3eda0d.tar.bz2 luarocks-145df6f63953d2d43ef668fb5a4e5b9adf3eda0d.zip |
changes string.gfind for string.gmatch
Diffstat (limited to 'src')
-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 |