unnecessary use of preg_match_all replaced with preg_match

This commit is contained in:
Ivan Ganev 2017-11-05 16:35:50 +02:00
commit ff1a36fdcc

View file

@ -86,7 +86,7 @@ class Waveform extends AbstractMediaType
{
foreach ($colors as $row => $value)
{
if (!preg_match_all('/^#(?:[0-9a-fA-F]{6})$/', $value))
if (!preg_match('/^#(?:[0-9a-fA-F]{6})$/', $value))
{
//invalid color
unset($colors[$row]);