Closed Mottie closed 8 years ago
Perhaps it might be better to switch to https://github.com/TrySound/postcss-value-parser instead of using regular expressions here.
I've begun a transition.
Edit: oops, I added a comment in the wrong place!
Thanks for all the hard work!
Pleasure! 😄
When a css definition includes a hex color and a base 64 encoded image, the image is converted to all lower case. For example, given this css:
the
applyTransformFeatures
function will determine that the followingrule.value
is a hex color:From looking at the code, no matter the setting of the
colorCase
option, this image URI will be destroyed by applying a.toLowerCase()
function at line 303 or.toUpperCase()
function at line 305 of theindex.js
file.Restoring the start and end anchors of the
isHexColor.js
match regex (removed in pr #36), would fix this issue, but I didn't test if anything else would break.