Skip to content

Commit ed0583e

Browse files
committed
fix(util): remove double forward slashes
1 parent 3da6c74 commit ed0583e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/lazy/core/util.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function M.norm(path)
4444
end
4545
path = home .. path:sub(2)
4646
end
47-
path = path:gsub("\\", "/")
47+
path = path:gsub("\\", "/"):gsub("/+", "/")
4848
return path:sub(-1) == "/" and path:sub(1, -2) or path
4949
end
5050

0 commit comments

Comments
 (0)