Fix file.get_name

This commit is contained in:
Lars Mueller 2021-12-30 18:49:35 +01:00
parent fa328b16db
commit ba4ce3254b

@ -9,7 +9,7 @@ setfenv(1, _ENV)
_ENV.dir_delim = dir_delim
function get_name(filepath)
return filepath:match(dir_delim .. "(.-)$") or filepath
return filepath:match("([^%" .. dir_delim .. "]+)$") or filepath
end
function split_extension(filename)