Browse Source

depgraph: Allow underscores in module names.

Emmanuel Lepage Vallee 10 months ago
parent
commit
fa6c050be3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      build-utils/check_for_invalid_requires.lua

+ 1
- 1
build-utils/check_for_invalid_requires.lua View File

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

Loading…
Cancel
Save