diff --git a/src/GitList/Util/Routing.php b/src/GitList/Util/Routing.php index c283fec..0f22dae 100644 --- a/src/GitList/Util/Routing.php +++ b/src/GitList/Util/Routing.php @@ -25,6 +25,7 @@ class Routing }, $this->app['git']->getRepositories($this->app['git.repos']) ); + usort($quoted_paths, function ($a, $b) { return strlen($b) - strlen($a); }); $regex = implode('|', $quoted_paths); }