From 229a46c344d1c2f59b2984ef7d1ad979fce43a75 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Wed, 17 Oct 2018 11:39:41 +0200 Subject: [PATCH] fixed highlighting of commits nav link --- scm-ui/src/repos/containers/RepositoryRoot.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/scm-ui/src/repos/containers/RepositoryRoot.js b/scm-ui/src/repos/containers/RepositoryRoot.js index 2c7d8e8801..4e922d1d66 100644 --- a/scm-ui/src/repos/containers/RepositoryRoot.js +++ b/scm-ui/src/repos/containers/RepositoryRoot.js @@ -72,9 +72,7 @@ class RepositoryRoot extends React.Component { 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); };