mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Fix PlaceFilter validation
This commit is contained in:
parent
9fd48762ae
commit
e704a6c270
@ -12,7 +12,7 @@
|
|||||||
d:DataContext="{d:DesignInstance dmodels:MainWindowViewModel, IsDesignTimeCreatable=True}"
|
d:DataContext="{d:DesignInstance dmodels:MainWindowViewModel, IsDesignTimeCreatable=True}"
|
||||||
Title="{x:Static resources:Strings.Menu_Title}"
|
Title="{x:Static resources:Strings.Menu_Title}"
|
||||||
MinWidth="960"
|
MinWidth="960"
|
||||||
Width="980"
|
Width="1000"
|
||||||
Height="580"
|
Height="580"
|
||||||
Background="{ui:ThemeResource ApplicationBackgroundBrush}"
|
Background="{ui:ThemeResource ApplicationBackgroundBrush}"
|
||||||
ExtendsContentIntoTitleBar="True"
|
ExtendsContentIntoTitleBar="True"
|
||||||
|
@ -27,9 +27,9 @@ namespace Bloxstrap.UI.Elements.Settings.Pages
|
|||||||
|
|
||||||
// values must match the entire string to avoid cases where half the string
|
// values must match the entire string to avoid cases where half the string
|
||||||
// matches but the filter would still be invalid
|
// matches but the filter would still be invalid
|
||||||
private readonly Regex _boolFilterPattern = new("(?:true|false)(;[\\d]{1,})+$");
|
private readonly Regex _boolFilterPattern = new("^(?:true|false)(;[\\d]{1,})+$", RegexOptions.IgnoreCase);
|
||||||
private readonly Regex _intFilterPattern = new("([\\d]{1,})?(;[\\d]{1,})+$");
|
private readonly Regex _intFilterPattern = new("^([\\d]{1,})?(;[\\d]{1,})+$", RegexOptions.IgnoreCase);
|
||||||
private readonly Regex _stringFilterPattern = new("^[^;]*(;[\\d]{1,})+$");
|
private readonly Regex _stringFilterPattern = new("^[^;]*(;[\\d]{1,})+$", RegexOptions.IgnoreCase);
|
||||||
|
|
||||||
private bool _showPresets = false;
|
private bool _showPresets = false;
|
||||||
private string _searchFilter = "";
|
private string _searchFilter = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user