fixed branchesRegex for branch/name/changesets

This commit is contained in:
Florian Scholdei
2019-03-29 10:34:29 +01:00
parent 68d17f8ad8
commit 7ea2a06b1e
2 changed files with 5 additions and 7 deletions

View File

@@ -77,7 +77,7 @@ class RepositoryRoot extends React.Component<Props> {
matchesBranches = (route: any) => {
const url = this.matchedUrl();
const regex = new RegExp(`${url}?/?/branch?.*`);
const regex = new RegExp(`${url}(/branch)?/?[^/]*/info?.*`);
return route.location.pathname.match(regex);
};