diff --git a/GUI/MainWindow.xaml.cs b/GUI/MainWindow.xaml.cs index 6ce175cf..3c1e4187 100644 --- a/GUI/MainWindow.xaml.cs +++ b/GUI/MainWindow.xaml.cs @@ -1132,8 +1132,7 @@ namespace GARbro.GUI CurrentDirectory.SelectAll(); return; } - var mask = Regex.Escape (selection.Mask.Text).Replace (@"\*", ".*").Replace (@"\?", "."); - var glob = new Regex ("^"+mask+"$", RegexOptions.IgnoreCase); + var glob = new FileNameGlob (selection.Mask.Text); var matching = ViewModel.Where (entry => glob.IsMatch (entry.Name)); if (!matching.Any()) {