From 9fd9e8777d0f547ff8618f92c6eede37eed4476e Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sun, 14 Apr 2013 13:18:01 +0200 Subject: [PATCH] bugfix --- src/Intervention/Image/Image.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Intervention/Image/Image.php b/src/Intervention/Image/Image.php index aa14af0d..59db4b28 100644 --- a/src/Intervention/Image/Image.php +++ b/src/Intervention/Image/Image.php @@ -1313,7 +1313,7 @@ class Image $b = ($matches[3] >= 0 && $matches[3] <= 255) ? intval($matches[3]) : 0; // parse color string in format rgba(255, 0, 0, 0.5) - } elseif (preg_match('/^rgba ?\(([0-9]{1,3}), ?([0-9]{1,3}), ?([0-9]{1,3}), ?([0-9.]{1,3})\)$/i', $value, $matches)) { + } elseif (preg_match('/^rgba ?\(([0-9]{1,3}), ?([0-9]{1,3}), ?([0-9]{1,3}), ?([0-9.]{1,4})\)$/i', $value, $matches)) { $r = ($matches[1] >= 0 && $matches[1] <= 255) ? intval($matches[1]) : 0; $g = ($matches[2] >= 0 && $matches[2] <= 255) ? intval($matches[2]) : 0;