yui / yuicompressor

YUI Compressor
http://yui.github.com/yuicompressor/
Other
3.01k stars 664 forks source link

CssCompressor.java #308

Open mevb opened 6 years ago

mevb commented 6 years ago

A little bug in CssCompressor.java:

// Replace 0(px,em,%) with 0. css = css.replaceAll("(?i)(^|[^0-9])(?:0?\\.)?0(?:px|em|%|in|cm|mm|pc|pt|ex|deg|g?rad|m?s|k?hz)", "$10"); That's not correct, for example when in your css file you put : .dummy0Selected { ... } becomes: .dummy0elected { ... }