spatie / color

A little library to deal with color conversions
https://spatie.be/opensource/php
MIT License
350 stars 36 forks source link

Error in CIELab regexp #55

Closed oy-satana closed 2 years ago

oy-satana commented 3 years ago

Example $rgb = new \Spatie\Color\Rgb(0, 0, 0); \Spatie\Color\CIELab::fromString((string) $rgb->toCIELab());

Input values are not always floats and the validator will throw exception

CIELab color string CIELab(0,0,0) is malformed. A CIELab color contains 3 comma separated values, wrapped in CIELab(), e.g. CIELab(62.91,5.34,-57.73)