Fix problem with previous commit

Desastrous problem where core.normalize_path was removing the leading /.
This commit is contained in:
Francesco Abbate 2021-05-10 17:01:14 +02:00
parent 708c2983ef
commit ea3a7e81be
1 changed files with 3 additions and 0 deletions

View File

@ -236,6 +236,9 @@ end
local function split_on_slash(s, sep_pattern)
local t = {}
if s:match("^[/\\]") then
t[#t + 1] = ""
end
for fragment in string.gmatch(s, "([^/\\]+)") do
t[#t + 1] = fragment
end