-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rgb with only two params incorrectly parse color #65
Comments
Seems like it's not related to |
|
Yep, confirmed - this should be erroring. Regression introduced in 85e6f53 - I'll move this over to the |
Thanks for the report, sorry about that! Fix landed in 32f3e00, released as |
Thanks, seems it fixed the problem 💯 |
No problem, thanks for confirming! |
Thank you! 🎊 |
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! 🙏
The text was updated successfully, but these errors were encountered: