Allow max 16 decimals for alpha when parsing rgba

This commit is contained in:
Marc Jansen
2016-11-14 08:40:39 +01:00
parent 8f6e07bfb8
commit 9af73a1588
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
/**