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