Better require regexps for submodules
This commit is contained in:
parent
77674a4830
commit
a094675a49
8 changed files with 10 additions and 9 deletions
2
init.lua
2
init.lua
|
@ -1,4 +1,4 @@
|
|||
local BASE = (...) .. '.'
|
||||
local BASE = ((...):match('(.+)%.') or ...) .. '.'
|
||||
|
||||
return {
|
||||
core = require(BASE .. 'core'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue