Fixes #441 - hex to name color converting.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 22 Jan 2015 10:52:42 +0000 (10:52 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 22 Jan 2015 10:59:23 +0000 (10:59 +0000)
commit5f560aeada7b556a4ed2c7bf7bec993c92389869
tree33eebc77d43f2948b2d3e9bd7476dfb476e8d71c
parent5ef19f612243f78b9a5eb6bcfffab93036b4f23d
Fixes #441 - hex to name color converting.

Apparently if a hex was a substring of a known hex -> name color conversion,
then it was also replaced.

Fixed by checking if hex are matched fully.
History.md
lib/colors/hex-name-shortener.js
test/selectors/optimizers/simple-test.js