Closed sam-silv closed 9 years ago
Looks like a nice, simple addition. +1
Hi there,
Thanks! Are you sure there aren't any 6 character color names with letters a-f?
Of this list of color names http://www.w3.org/TR/SVG/types.html#ColorKeywords
We ony need to consider the ones that start with a-f:
aliceblue, antiquewhite, aqua, aquamarine, azure, beige, bisque, black, blanchedalmond, blue, blueviolet, brown, burlywood, cadetblue, chartreuse, chocolate, coral, cornflowerblue, cornsilk, crimson, cyan, darkblue, darkcyan, darkgoldenrod, darkgray, darkgreen, darkgrey, darkkhaki, darkmagenta, darkolivegreen, darkorange, darkorchid, darkred, darksalmon, darkseagreen, darkslateblue, darkslategray, darkslategrey, darkturquoise, darkviolet, deeppink, deepskyblue, dimgray, dimgrey, dodgerblue, firebrick, floralwhite, forestgreen, & fuchsia
in those there is just one with 6 characters:
bisque
So we're good.
👍
This should be merged! :+1:
Sure, sorry for the huge delay, I'm gonna merge it now. Can we also add (?!bisque)
before the regex just to make sure?
When copying hex codes from Photoshop, Fireworks and other graphics packages (which is often more convenient than using rgb and the like), '#' usually isn't prepended. This adds a conditional that matches only those six digit hex codes and automatically adds the '#' for convenience sake.