Closed nesk closed 7 years ago
Thanks! Released as 1.1.1.
I had to make one more minor tweak to handle whitespace before and after rgb(a) strings.
https://github.com/spatie/color/commit/60becaca3a2ccf5219ae8159f27cae12ca2c2f91
I wasn't sure about handling whitespaces before and after the value. It's probably better to handle them but what about hexadecimal values? Your minor tweaks only affect rgb and rgba values.
Was doubting about it. The only reason I made the change was so the tests passed, so it was a non-breaking change.
The
#aabbccddee
value was considered valid, so I've fixed the behaviour for all color types.