Skip to content

Commit

Permalink
frontend: add link RegExp match
Browse files Browse the repository at this point in the history
  • Loading branch information
BennieMeng committed Mar 1, 2019
1 parent 1b63a6a commit ca6d1d1
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 ca6d1d1

Please sign in to comment.