Better require regexps for submodules

This commit is contained in:
Matthias Richter 2012-02-21 14:52:30 +01:00
parent 77674a4830
commit a094675a49
8 changed files with 10 additions and 9 deletions

View file

@ -1,4 +1,4 @@
local core = require((...):match("^(.+)%.[^%.]+") .. '.core')
local core = require((...):match("(.-)[^%.]+$") .. 'core')
return function(info, x,y,w,h, draw)
assert(type(info) == 'table' and info.value, "Incomplete slider value info")