mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-15 03:07:56 +01:00
[ColorPicker] Accept lower-case hex code in AdjustColor window HEX text block (#14602)
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user