diff --git a/js/utils/color.js b/js/utils/color.js index edf67c4ae1e..e28a2b13af9 100644 --- a/js/utils/color.js +++ b/js/utils/color.js @@ -44,7 +44,7 @@ export const colorToRgb = ( color ) => { }; } - let rgba = color.match( /^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i ); + let rgba = color.match( /^rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d]+|[\d]*.[\d]+)\s*\)$/i ); if( rgba ) { return { r: parseInt( rgba[1], 10 ),