aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 a2cdcf08..b10594a3 100644
--- a/src/luarocks/deps.lua
+++ b/src/luarocks/deps.lua
@@ -211,7 +211,7 @@ end
211function parse_dep(dep) 211function parse_dep(dep)
212 assert(type(dep) == "string") 212 assert(type(dep) == "string")
213 213
214 local name, rest = dep:match("^%s*(%a[%w%-]*%w)%s*(.*)") 214 local name, rest = dep:match("^%s*([a-zA-Z][a-zA-Z0-9%.%-%_]*)%s*(.*)")
215 if not name then return nil end 215 if not name then return nil end
216 local constraints = parse_constraints(rest) 216 local constraints = parse_constraints(rest)
217 if not constraints then return nil end 217 if not constraints then return nil end