This commit is contained in:
Ren Tatsumoto 2020-09-24 21:00:33 +03:00
parent b8229c46cb
commit 5256d28122

View file

@ -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)