Skip to content

Commit

Permalink
fix(util): remove double forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed Dec 31, 2022
1 parent 3da6c74 commit ed0583e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/lazy/core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function M.norm(path)
end
path = home .. path:sub(2)
end
path = path:gsub("\\", "/")
path = path:gsub("\\", "/"):gsub("/+", "/")
return path:sub(-1) == "/" and path:sub(1, -2) or path
end

Expand Down

0 comments on commit ed0583e

Please sign in to comment.