fix(util): correctly clean up duplicate slashes, fixed #153
This commit is contained in:
parent
2c277b8f79
commit
76c041ad48
1 changed files with 1 additions and 1 deletions
|
|
@ -54,5 +54,5 @@ export const getParentPath = cached(path => {
|
||||||
})
|
})
|
||||||
|
|
||||||
export const cleanPath = cached(path => {
|
export const cleanPath = cached(path => {
|
||||||
return path.replace(/\/+/g, '/')
|
return path.replace(/([^:])\/{2,}/g, '$1/')
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue