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);
$color = $matches[1] .$matches[1] .
$matches[2] .$matches[2] .
$matches[3] .$matches[3] .
'ff';
$matches[3] .$matches[3];
break;
case 7:
$color = substr($value, 1) . 'ff';
$color = substr($value, 1);
break;
case 9:
$color = substr($value, 1);
$color = substr($value, 1, 6);
break;
}
}