Skip to content

Commit

Permalink
fix(menu): update url-matching helper to include ; (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
huybn5776 authored and nnixaa committed Jul 27, 2018
1 parent 22ba6ef commit c67ec11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ export function isUrlPathContain(path, link) {
}

export function getPathPartOfUrl(url): string {
return url.match(/.*?(?=[?#]|$)/)[0];
return url.match(/.*?(?=[?;#]|$)/)[0];
}

0 comments on commit c67ec11

Please sign in to comment.