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! 🙏
Hey!
I'm using
colorpackage 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! 🙏