mirror of
https://github.com/appgurueu/modlib.git
synced 2024-11-29 18:53:44 +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
|
_ENV.dir_delim = dir_delim
|
||||||
|
|
||||||
function get_name(filepath)
|
function get_name(filepath)
|
||||||
return filepath:match(dir_delim .. "(.-)$") or filepath
|
return filepath:match("([^%" .. dir_delim .. "]+)$") or filepath
|
||||||
end
|
end
|
||||||
|
|
||||||
function split_extension(filename)
|
function split_extension(filename)
|
||||||
|
Loading…
Reference in New Issue
Block a user