From 4b4b65d961a1b9cd38cd871fa0673f478b4ec0cb Mon Sep 17 00:00:00 2001 From: tophf Date: Mon, 25 Dec 2017 02:21:25 +0300 Subject: [PATCH] colorview: support a signed number exponent --- vendor-overwrites/colorpicker/colorview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor-overwrites/colorpicker/colorview.js b/vendor-overwrites/colorpicker/colorview.js index 754e4836..47ef3ce6 100644 --- a/vendor-overwrites/colorpicker/colorview.js +++ b/vendor-overwrites/colorpicker/colorview.js @@ -10,7 +10,7 @@ const CLOSE_POPUP_EVENT = 'close-colorpicker-popup'; - const RXS_NUM = /\s*(\d+\.?\d*|\d*\.\d+)(?:e\d+)?/.source; + const RXS_NUM = /\s*(\d+\.?\d*|\d*\.\d+)(?:e[+-]?\d+)?/.source; const RX_COLOR = { hex: /#(?:[a-f\d]{3}(?:[a-f\d](?:[a-f\d]{2}){0,2})?)\b/iy,