diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-04-13 12:34:10 -0700 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-04-13 12:34:10 -0700 |
commit | e3fd566cd1080fa9f28cf466526455e0ce6a6e50 (patch) | |
tree | 67076e7df8afddab509389b2a5dd33fdc54d288b /src | |
parent | 419686e343b0bf07f962b3d0ed1a4244eb7213bb (diff) | |
parent | 145df6f63953d2d43ef668fb5a4e5b9adf3eda0d (diff) | |
download | luarocks-e3fd566cd1080fa9f28cf466526455e0ce6a6e50.tar.gz luarocks-e3fd566cd1080fa9f28cf466526455e0ce6a6e50.tar.bz2 luarocks-e3fd566cd1080fa9f28cf466526455e0ce6a6e50.zip |
Merge pull request #69 from ignacio/lua51_no_compat
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 292ca2ba..96ea03b8 100644 --- a/src/luarocks/util.lua +++ b/src/luarocks/util.lua | |||
@@ -288,7 +288,7 @@ function split_string(str, delim, maxNb) | |||
288 | local pat = "(.-)" .. delim .. "()" | 288 | local pat = "(.-)" .. delim .. "()" |
289 | local nb = 0 | 289 | local nb = 0 |
290 | local lastPos | 290 | local lastPos |
291 | for part, pos in string.gfind(str, pat) do | 291 | for part, pos in string.gmatch(str, pat) do |
292 | nb = nb + 1 | 292 | nb = nb + 1 |
293 | result[nb] = part | 293 | result[nb] = part |
294 | lastPos = pos | 294 | lastPos = pos |