Fixes #450 - color names to hex codes.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 30 Jan 2015 22:32:25 +0000 (22:32 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 31 Jan 2015 10:25:26 +0000 (10:25 +0000)
commit63b6543b376c55c866abec8f4ba563d343f7678a
treecbf813f083f92f3db6172969aa45eb9163daa9f2
parentb1636497b66589ab980c98d4e287f5d1f5314046
Fixes #450 - color names to hex codes.

Regexp matching color names was too greedy and was matching some
other values as well.

On the downside we need to run the replacement twice.

On the upside it extracts replacement functions so we get a slight
speed boost.
History.md
lib/colors/hex-name-shortener.js
test/selectors/optimizers/simple-test.js