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

CSS is being stripped of its negative symbol. #23

Closed
mullanaphy opened this issue Dec 4, 2014 · 1 comment
Closed

CSS is being stripped of its negative symbol. #23

mullanaphy opened this issue Dec 4, 2014 · 1 comment

Comments

@mullanaphy
Copy link

To test, minify:

ul.pagination {
display: block;
min-height: 1.5rem;
margin-left: -0.3125rem;
}

Results in:

ul.pagination{display:block;min-height:1.5rem;margin-left:0.3125rem}

Seems the shortenZeros regex is being a little greedy and doesn't care for decimals. Temporary fix for me is changing all of "0." to just ".".

/(?<![0-9])-?0(%|px|em)?/i => matches -0.3125rem

@mullanaphy mullanaphy changed the title CSS is being stripped of it's negative symbol. CSS is being stripped of its negative symbol. Dec 4, 2014
@matthiasmullie
Copy link
Owner

Thanks for the report! f5d1bd2 will fix that & I'll publish a new release in a minute!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants