Skip to content

Commit

Permalink
chore(windows): lowercase entire path in normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Feb 20, 2024
1 parent e37d39d commit b60340c
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lua/rustaceanvim/os.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ end
---@return string normalize_path
function os.normalize_path(path)
if require('rustaceanvim.shell').is_windows() then
local has_windows_drive_letter = path:match('^%a:')
if has_windows_drive_letter then
return path:sub(1, 1):lower() .. path:sub(2)
end
return path:lower()
end
return path
end
Expand Down

0 comments on commit b60340c

Please sign in to comment.