Skip to content
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

Invalid strings returned as colors #4

Open
nisalikularatne opened this issue Jan 18, 2019 · 0 comments
Open

Invalid strings returned as colors #4

nisalikularatne opened this issue Jan 18, 2019 · 0 comments

Comments

@nisalikularatne
Copy link

nisalikularatne commented Jan 18, 2019

Hi, I have tried the following example:

var isColor = require('is-color');
isColor('dfgf#ffffff'); //true
is(Color('rgba(d#ffffff)fd,0.1'); //true

The output is evaluated to true while the strings that I have typed in are not valid colors. Is there a way to handle such input strings?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant