mirror of https://github.com/folke/lazy.nvim.git
fix(util): remove double forward slashes
This commit is contained in:
parent
3da6c74ed3
commit
ed0583e82b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue