From e8fd785227011c417c611aba3e145c04a4ec7c98 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Mon, 10 May 2021 17:01:14 +0200 Subject: [PATCH] Fix problem with previous commit Desastrous problem where core.normalize_path was removing the leading /. --- data/core/common.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/data/core/common.lua b/data/core/common.lua index d8f8a5aa..06ef2880 100644 --- a/data/core/common.lua +++ b/data/core/common.lua @@ -238,6 +238,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