aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/util.lua2
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