mirror of
https://github.com/LorenzCK/OnTopReplica.git
synced 2024-05-10 23:42:56 +12:00
SizeConverter : update regex value to allow negative values
This commit is contained in:
parent
f59db2c01e
commit
63e9487423
|
@ -46,7 +46,7 @@ namespace OnTopReplica.StartupOptions {
|
|||
return base.ConvertTo(context, culture, value, destinationType);
|
||||
}
|
||||
|
||||
static Regex _sizeRegex = new Regex("^\\D*(?<x>\\d*)\\s*,\\s*(?<y>\\d*)\\D*$",
|
||||
static Regex _sizeRegex = new Regex("^[^0-9-]*(?<x>-?\\d*)\\s*,\\s*(?<y>-?\\d*)\\D*$",
|
||||
RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.Singleline);
|
||||
|
||||
private Size StringToSize(string s) {
|
||||
|
|
Loading…
Reference in a new issue