[ColorPicker] Accept lower-case hex code in AdjustColor window HEX text block (#14602)
This commit is contained in:
parent
6452369351
commit
8afac77841
|
@ -291,7 +291,7 @@ namespace ColorPicker.Controls
|
|||
var newValue = (sender as TextBox).Text;
|
||||
|
||||
// support hex with 3 and 6 characters
|
||||
var reg = new Regex("^#([0-9A-F]{3}){1,2}$");
|
||||
var reg = new Regex("^#([0-9A-Fa-f]{3}){1,2}$");
|
||||
|
||||
if (!reg.IsMatch(newValue))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue