Skip to content

Commit

Permalink
Merge pull request #330 from BennieMeng/fix/admin-link-change
Browse files Browse the repository at this point in the history
add link RegExp match
  • Loading branch information
wilhelmguo authored Mar 1, 2019
2 parents 1b63a6a + ca6d1d1 commit 11abce2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export class SideNavExpand implements OnInit, OnDestroy {
if (option && option.exact !== undefined) {
return option.exact ?
this.currentUrl === `${this.prefix}${link}` :
new RegExp(link).test(this.currentUrl);
new RegExp(`${link}\\b`).test(this.currentUrl);
} else {
return this.currentUrl === `${this.prefix}${link}`;
}
Expand Down

0 comments on commit 11abce2

Please sign in to comment.