8000 rgb with only two params incorrectly parse color · Issue #65 · Qix-/color-string · GitHub
[go: up one dir, main page]

Skip to content
rgb with only two params incorrectly parse color #65
@gerdasi

Description

@gerdasi

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! 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0