Skip to content

Commit

Permalink
fix: πŸ› treat isActive to case-insensitive
Browse files Browse the repository at this point in the history
βœ… Closes: vuejs#3656
  • Loading branch information
Kyle-Ye committed Oct 28, 2021
1 parent 084e778 commit c8fc6d1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/route.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ function isObjectEqual (a = {}, b = {}): boolean {

export function isIncludedRoute (current: Route, target: Route): boolean {
return (
current.path.replace(trailingSlashRE, '/').indexOf(
target.path.replace(trailingSlashRE, '/')
current.path.replace(trailingSlashRE, '/').toLowerCase().indexOf(
target.path.replace(trailingSlashRE, '/').toLowerCase()
) === 0 &&
(!target.hash || current.hash === target.hash) &&
queryIncludes(current.query, target.query)
Expand Down

0 comments on commit c8fc6d1

Please sign in to comment.