Closed britzl closed 10 years ago
why so difficult :)
if name:match("^@") then
name = name:sub(2)
elseif not runner.configuration.codefromstrings then
return
end
@hishamhm I do not like name codefromstrings
.
In fact we do not coverage code in strings but just use code string
(in term of stock Lua) as file path
.
But I have no Idea about better name. At least please update comment in defaults.lua
@moteus Hehe, yeah that change looks a whole lot better. Not sure what went on in my brain when I wrote that :-)
Updated conditional to the one provided by @moteus
This was already fixed. Closing my own PR
If codefromstrings configuration option is enabled the runner will always strip the first character of the filename even if it doesn’t begin with an @ sign