We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1babc3e commit 2a431daCopy full SHA for 2a431da
src/directives/link.js
@@ -72,7 +72,7 @@ export default function (Vue) {
72
}
73
path = this.path = router._stringifyPath(path)
74
this.activeRE = path && !this.exact
75
- ? new RegExp('^' + path.replace(regexEscapeRE, '\\$&') + '(\\b|$)')
+ ? new RegExp('^' + path.replace(/\/$/, '').replace(regexEscapeRE, '\\$&') + '(\\/|$)')
76
: null
77
this.updateClasses(this.vm.$route.path)
78
let isAbsolute = path.charAt(0) === '/'
0 commit comments