depgraph: Allow underscores in module names.

This commit is contained in:
Emmanuel Lepage Vallee 2018-12-28 03:15:53 -05:00
parent 9533d97b9b
commit fa6c050be3
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ local allowed_deps = {
-- Turn "foo.bar.baz" into "foo.bar". Returns nil if there is nothing more to
-- remove.
local function get_supermodule(module)
return string.match(module, "(.+)%.%a+")
return string.match(module, "(.+)%.[a-z_]+")
end
-- Check if "module" (or one of its parents) is allowed to depend on