mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-09-02 02:38:37 +02:00
Sort repository regex paths by longest first
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user