Skip to content

isValid() function returning true for invalid hsl or rgb colors #161

Description

@mburakerman

Thanks for awesome library!

Theres is small issues about isValid() function.

Unless we don't write a letter, isValid() function returns true for rgb and hsl colors.

alert(tinycolor('hsla(642,14%,76%,1)').isValid())

jsfiddle

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions