diff --git a/file.lua b/file.lua index 316a2f4..e548443 100644 --- a/file.lua +++ b/file.lua @@ -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)