Browse Source
Merge branch 'master' into emmaus/android_single_activity
pull/11854/head
Emmanuel Hansen
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
3 additions and
3 deletions
-
src/Avalonia.Dialogs/Internal/ManagedFileChooserFilterViewModel.cs
|
|
|
@ -18,9 +18,9 @@ namespace Avalonia.Dialogs.Internal |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
_patterns = filter.Patterns? |
|
|
|
.Select(e => new Regex(Regex.Escape(e).Replace(@"\*", ".*").Replace(@"\?", "."), RegexOptions.Singleline | RegexOptions.IgnoreCase)) |
|
|
|
.ToArray(); |
|
|
|
_patterns = filter.Patterns? |
|
|
|
.Select(e => new Regex("^" + Regex.Escape(e).Replace("\\*", ".*") + "$", RegexOptions.Singleline | RegexOptions.IgnoreCase)) |
|
|
|
.ToArray(); |
|
|
|
} |
|
|
|
|
|
|
|
public bool Match(string filename) |
|
|
|
|