unnecessary use of preg_match_all replaced with preg_match
This commit is contained in:
parent
8950598211
commit
ff1a36fdcc
1 changed files with 1 additions and 1 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue