mirror of
https://github.com/wahyd4/docsify.git
synced 2026-08-10 05:48:18 +10:00
fix(util): correctly clean up duplicate slashes, fixed #153
This commit is contained in:
@@ -54,5 +54,5 @@ export const getParentPath = cached(path => {
|
||||
})
|
||||
|
||||
export const cleanPath = cached(path => {
|
||||
return path.replace(/\/+/g, '/')
|
||||
return path.replace(/([^:])\/{2,}/g, '$1/')
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user