From ba4ce3254b083f1a167a0a329fa789aaacc0e4c3 Mon Sep 17 00:00:00 2001 From: Lars Mueller Date: Thu, 30 Dec 2021 18:49:35 +0100 Subject: [PATCH] Fix file.get_name --- file.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)