[ColorPicker] Accept lower-case hex code in AdjustColor window HEX text block (#14602)

This commit is contained in:
Stefan Markovic
2021-11-23 16:40:12 +01:00
committed by GitHub
parent 6452369351
commit 8afac77841

View File

@@ -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))
{