colorview: support a signed number exponent
This commit is contained in:
parent
b70beac3c9
commit
4b4b65d961
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
const CLOSE_POPUP_EVENT = 'close-colorpicker-popup';
|
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 = {
|
const RX_COLOR = {
|
||||||
hex: /#(?:[a-f\d]{3}(?:[a-f\d](?:[a-f\d]{2}){0,2})?)\b/iy,
|
hex: /#(?:[a-f\d]{3}(?:[a-f\d](?:[a-f\d]{2}){0,2})?)\b/iy,
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user