dreamyguy / validate-color

✅🌈🙌 Validate HTML colors by 'name', 'special name', 'hex', 'rgb', 'rgba', 'hsl', 'hsla', 'hwb' or 'lab' values
https://www.npmjs.com/package/validate-color
MIT License
53 stars 6 forks source link

Incorrect RGB validation #41

Open KelvinOm opened 1 year ago

KelvinOm commented 1 year ago

First of all, I want to say thank you for your work.

I found that validateColor("rgb(0,0,0,)") will return the true, which is an error.

KelvinOm commented 1 year ago

Hey there, any updates on this?