mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-22 07:13:45 +01:00
Fix file.get_name
This commit is contained in:
parent
fa328b16db
commit
ba4ce3254b
2
file.lua
2
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)
|
||||
|
Loading…
Reference in New Issue
Block a user