We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c277b8 commit 76c041aCopy full SHA for 76c041a
src/core/route/util.js
@@ -54,5 +54,5 @@ export const getParentPath = cached(path => {
54
})
55
56
export const cleanPath = cached(path => {
57
- return path.replace(/\/+/g, '/')
+ return path.replace(/([^:])\/{2,}/g, '$1/')
58
0 commit comments