Save HEX colors without alpha

This commit is contained in:
JodliDev 2021-08-26 11:58:24 +02:00
parent 0cc7f1ebdd
commit 766088b19a

View file

@ -2047,14 +2047,13 @@ else {
preg_match('/#(.)(.)(.)/', $value, $matches); preg_match('/#(.)(.)(.)/', $value, $matches);
$color = $matches[1] .$matches[1] . $color = $matches[1] .$matches[1] .
$matches[2] .$matches[2] . $matches[2] .$matches[2] .
$matches[3] .$matches[3] . $matches[3] .$matches[3];
'ff';
break; break;
case 7: case 7:
$color = substr($value, 1) . 'ff'; $color = substr($value, 1);
break; break;
case 9: case 9:
$color = substr($value, 1); $color = substr($value, 1, 6);
break; break;
} }
} }