mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-01 11:05:56 +01:00
fixed highlighting of commits nav link
This commit is contained in:
@@ -72,9 +72,7 @@ class RepositoryRoot extends React.Component<Props> {
|
|||||||
|
|
||||||
matches = (route: any) => {
|
matches = (route: any) => {
|
||||||
const url = this.matchedUrl();
|
const url = this.matchedUrl();
|
||||||
const regex = new RegExp(
|
const regex = new RegExp(`${url}(/branches)?/?[^/]*/changesets?.*`);
|
||||||
`${url}(/branches)?/?[a-zA-Z0-9_%]*/changesets?.*`
|
|
||||||
);
|
|
||||||
return route.location.pathname.match(regex);
|
return route.location.pathname.match(regex);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user