Qix-/color




Do you want to work on this issue?
You can request for a bounty in order to promote it!
rgb with only two params incorrectly parse color #234
gerdasi posted onGitHub
Hey!
I'm using color
package and have some local tests for invalid user input check. After recent release (4.0.2
) couple of my tests started failing.
Previously rgb(255,2)
color was invalid and now it returns [25, 5, 2]
.
The same goes for rgba(255,0)
- it returns [25, 5, 0]
.
Is this expected behaviour? As far as I know, it should be invalid syntax 🤔 . Thanks! 🙏