fixed highlighting of commits nav link

This commit is contained in:
Sebastian Sdorra
2018-10-17 11:39:41 +02:00
parent e6c16c3fc5
commit 229a46c344

View File

@@ -72,9 +72,7 @@ class RepositoryRoot extends React.Component<Props> {
matches = (route: any) => {
const url = this.matchedUrl();
const regex = new RegExp(
`${url}(/branches)?/?[a-zA-Z0-9_%]*/changesets?.*`
);
const regex = new RegExp(`${url}(/branches)?/?[^/]*/changesets?.*`);
return route.location.pathname.match(regex);
};