aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2013-08-29 20:08:57 -0300
committerHisham Muhammad <hisham@gobolinux.org>2013-08-29 20:08:57 -0300
commit8cb0bc439f015ece926c9b03151fff48cda7f1b4 (patch)
treed10ff1e863bc47a057dfa8d92ec7ec61c615c93a
parent4744dc4520e9129a8c98b76c63d341e0e66a7ca0 (diff)
downloadluarocks-8cb0bc439f015ece926c9b03151fff48cda7f1b4.tar.gz
luarocks-8cb0bc439f015ece926c9b03151fff48cda7f1b4.tar.bz2
luarocks-8cb0bc439f015ece926c9b03151fff48cda7f1b4.zip
accept numbers as first character of a rock name in a dependency
-rw-r--r--src/luarocks/deps.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/deps.lua b/src/luarocks/deps.lua
index 5ac822cf..e0b8a42d 100644
--- a/src/luarocks/deps.lua
+++ b/src/luarocks/deps.lua
@@ -217,7 +217,7 @@ end
217function parse_dep(dep) 217function parse_dep(dep)
218 assert(type(dep) == "string") 218 assert(type(dep) == "string")
219 219
220 local name, rest = dep:match("^%s*([a-zA-Z][a-zA-Z0-9%.%-%_]*)%s*(.*)") 220 local name, rest = dep:match("^%s*([a-zA-Z0-9][a-zA-Z0-9%.%-%_]*)%s*(.*)")
221 if not name then return nil, "failed to extract dependency name from '"..tostring(dep).."'" end 221 if not name then return nil, "failed to extract dependency name from '"..tostring(dep).."'" end
222 local constraints, err = parse_constraints(rest) 222 local constraints, err = parse_constraints(rest)
223 if not constraints then return nil, err end 223 if not constraints then return nil, err end