Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breaking css minification bug fix: condense_hex_colors breaks 8-digit hex strings #86

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

StefanTodoran
Copy link

Changed the regular expression in condense_hex_colors to match only 6 digit hex strings using negative look-ahead. Previous behavior would break 8 digit long hex strings, because it would result in an invalid 5 digit hex string. Also added a test file for CSS minification, which contains some tests for hex color minification.

Closed the original request and reopened this one since I had made some modifications to the master branch which I didn't intend to include in the pull request, now the changes are in their own branch.

change to hex condense so it doesn't break hex colors with transparency
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant