From fa6c050be3c1272cd5b9d5fc4d1a94a67eaba294 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 28 Dec 2018 03:15:53 -0500 Subject: [PATCH] depgraph: Allow underscores in module names. --- build-utils/check_for_invalid_requires.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-utils/check_for_invalid_requires.lua b/build-utils/check_for_invalid_requires.lua index 924c902e..dd33443b 100755 --- a/build-utils/check_for_invalid_requires.lua +++ b/build-utils/check_for_invalid_requires.lua @@ -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