diff --git a/RepoZ.App.Mac/AppDelegate.cs b/RepoZ.App.Mac/AppDelegate.cs index 26ac9956..1d69597a 100644 --- a/RepoZ.App.Mac/AppDelegate.cs +++ b/RepoZ.App.Mac/AppDelegate.cs @@ -149,7 +149,7 @@ public Ipc.Repository[] GetMatchingRepositories(string repositoryNamePattern) { var aggregator = TinyIoCContainer.Current.Resolve(); return aggregator.Repositories - .Where(r => string.IsNullOrEmpty(repositoryNamePattern) || Regex.IsMatch(r.Name, repositoryNamePattern, RegexOptions.IgnoreCase)) + .Where(r => r.MatchesRegexFilter(repositoryNamePattern)) .Select(r => new Ipc.Repository { Name = r.Name,