diff --git a/src/core/route/util.js b/src/core/route/util.js index cfdd2a9..e8cac63 100644 --- a/src/core/route/util.js +++ b/src/core/route/util.js @@ -54,5 +54,5 @@ export const getParentPath = cached(path => { }) export const cleanPath = cached(path => { - return path.replace(/\/+/g, '/') + return path.replace(/([^:])\/{2,}/g, '$1/') })