fix: opening with lowercase drive letters
This commit is contained in:
parent
19563c3658
commit
29808f273c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue