From 7c746ab9a3ac22b979eee6505ca2e13772b8f568 Mon Sep 17 00:00:00 2001 From: tophf Date: Thu, 23 Nov 2017 19:28:37 +0300 Subject: [PATCH] fix colorpicker keyboard increment with #HEX in CAPS --- vendor-overwrites/colorpicker/colorpicker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor-overwrites/colorpicker/colorpicker.js b/vendor-overwrites/colorpicker/colorpicker.js index 3e8ab026..5616ff84 100644 --- a/vendor-overwrites/colorpicker/colorpicker.js +++ b/vendor-overwrites/colorpicker/colorpicker.js @@ -378,7 +378,7 @@ CodeMirror.defineExtension('colorpicker', function () { if (currentFormat === 'hex') { value = el.value.trim(); const isShort = value.length <= 5; - const [r, g, b, a = ''] = el.value.match(isShort ? /[\da-f]/g : /[\da-f]{2}/g); + const [r, g, b, a = ''] = el.value.match(isShort ? /[\da-f]/gi : /[\da-f]{2}/gi); let ceiling, data; if (!ctrl && !shift && !alt) { ceiling = isShort ? 0xFFF : 0xFFFFFF;