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

Some alpha-values not recognized #31

Closed
rivo opened this issue Nov 8, 2016 · 1 comment
Closed

Some alpha-values not recognized #31

rivo opened this issue Nov 8, 2016 · 1 comment

Comments

@rivo
Copy link

rivo commented Nov 8, 2016

The following is a valid color (black with 50% opacity) but will not be recognized:

d3.color("rgba(0,0,0,.5)") === null // true

It seems that at least one digit is always required before the decimal point. I believe this can be fixed in the corresponding regex.

@rivo
Copy link
Author

rivo commented Nov 9, 2016

Great, thanks!

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

No branches or pull requests

1 participant