Shorter color names don't check the entire hexcode
See original GitHub issueInput
const miniSvgDataUri = require("mini-svg-data-uri");
miniSvgDataUri('#f00999');
Expected output
"data:image/svg+xml,%23f00999"
Actual output
"data:image/svg+xml,red999"
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
How to Read Hex Color Codes - Hexadecimal Color | Pluralsight
A good place to start before moving on to reading hex color codes is learning how to understand RGB colors. RGB numbers are...
Read more >RGB to Color Name Mapping(Triplet and Hex)
Color Name Credits R;G;B Dec RGB Hex BG/FG color sample
Grey N 84;84;84 545454 ### SAMPLE ###
Grey, Silver V 192;192;192 C0C0C0 ### SAMPLE ###
grey...
Read more >Color Names - HTML Color Codes
Modern browsers support 140 named colors, which are listed below. Use them in your HTML and CSS by name, Hex color code or...
Read more >Named Colors and Hex Equivalents - CSS-Tricks
Named Colors and Hex Equivalents ; Sienna, #A0522D ; Silver, #C0C0C0 ; SkyBlue, #87CEEB ; SlateBlue, #6A5ACD.
Read more >How to easily find the hex code of a colour
Hexadecimal Colour Coding (Hex Codes for short) is the way that hues (colours) are precisely defined by a graphic designer to communicate to...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’d be happy if you did; you seem to understand the problem better than I.
Awesome, looks like
1.0.1is available on npm and it contains the fixes 👍Thanks! 😄