Fix problem with previous commit

Desastrous problem where core.normalize_path was removing the leading /.
This commit is contained in:
Francesco Abbate
2021-07-15 18:01:18 -04:00
committed by Adam Harrison
parent e1530c0951
commit 265501bb9e
+3
View File
@@ -269,6 +269,9 @@ end
local function split_on_slash(s, sep_pattern) local function split_on_slash(s, sep_pattern)
local t = {} local t = {}
if s:match("^[/\\]") then
t[#t + 1] = ""
end
for fragment in string.gmatch(s, "([^/\\]+)") do for fragment in string.gmatch(s, "([^/\\]+)") do
t[#t + 1] = fragment t[#t + 1] = fragment
end end