fix: opening with lowercase drive letters

This commit is contained in:
wrapperup 2023-05-21 16:25:43 -04:00
parent 19563c3658
commit 29808f273c

View file

@ -57,7 +57,7 @@ M.os_to_posix_path = function(path)
if M.is_windows then
if M.is_absolute(path) then
local drive, rem = path:match("^([^:]+):\\(.*)$")
return string.format("/%s/%s", drive, rem:gsub("\\", "/"))
return string.format("/%s/%s", drive:upper(), rem:gsub("\\", "/"))
else
return path:gsub("\\", "/")
end