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

Please accept hex color codes that start from a hash sign #79

Open
gaazkam opened this issue Mar 14, 2017 · 0 comments
Open

Please accept hex color codes that start from a hash sign #79

gaazkam opened this issue Mar 14, 2017 · 0 comments

Comments

@gaazkam
Copy link

gaazkam commented Mar 14, 2017

You only accept color codes in a format like this: <area data-maphilight='{"fillColor":"f0f0f0"}'>

Why not also accept a format like this: <area data-maphilight='{"fillColor":"#f0f0f0"}'>

I run into this issue because I have a script that assigns colors to areas and this script uses the hsvToHex function from this repo https://github.com/netbeast/colorsys , and this function outputs color codes with this hash sign in the beginning. Ofc the solution is as simple as .slice(1), but I think it would be convenient if You accepted color codes in this hash-prefixed format.

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