faster?
This commit is contained in:
parent
b8229c46cb
commit
5256d28122
|
@ -47,7 +47,7 @@ local presets = {
|
|||
-- utility functions
|
||||
|
||||
function string:endswith(suffix)
|
||||
return self:match(string.format('%s$', suffix))
|
||||
return suffix == "" or self:sub(-#suffix) == suffix
|
||||
end
|
||||
|
||||
local function remove_extension(filename)
|
||||
|
|
Loading…
Reference in a new issue