question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shorter color names don't check the entire hexcode

See original GitHub issue

Input

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:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

2reactions
tigtcommented, May 17, 2018

I’d be happy if you did; you seem to understand the problem better than I.

0reactions
cascornelissencommented, May 29, 2018

Awesome, looks like 1.0.1 is available on npm and it contains the fixes 👍

Thanks! 😄

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found