Allow max 16 decimals for alpha when parsing rgba
This commit is contained in:
@@ -30,7 +30,7 @@ ol.color.RGB_COLOR_RE_ =
|
||||
* @private
|
||||
*/
|
||||
ol.color.RGBA_COLOR_RE_ =
|
||||
/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,10})\)$/i;
|
||||
/^(?:rgba)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|1|0\.\d{0,16})\)$/i;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user