Skip to content

Commit

Permalink
fix(util): correctly clean up duplicate slashes, fixed #153
Browse files Browse the repository at this point in the history
  • Loading branch information
QingWei-Li committed Apr 28, 2017
1 parent 2c277b8 commit 76c041a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/route/util.js
Expand Up @@ -54,5 +54,5 @@ export const getParentPath = cached(path => {
})

export const cleanPath = cached(path => {
return path.replace(/\/+/g, '/')
return path.replace(/([^:])\/{2,}/g, '$1/')
})

0 comments on commit 76c041a

Please sign in to comment.