fix file.ext

This commit is contained in:
MihailRis 2026-09-20 21:58:36 +03:00
parent db53076c62
commit 60f184ae43
2 changed files with 6 additions and 1 deletions

View file

@ -8,7 +8,7 @@ function file.stem(path)
end
function file.ext(path)
return path:match("%.([^:/\\]+)$")
return path:match("[^:/\\.]%.([^.:/\\]+)$")
end
function file.prefix(path)