clean-css
Advanced tools
Comparing version 3.4.9 to 3.4.10
@@ -0,1 +1,6 @@ | ||
[3.4.10 / 2016-02-29](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.9...v3.4.10) | ||
================== | ||
* Fixed issue [#735](https://github.com/jakubpawlowicz/clean-css/issues/735) - whitespace removal with escaped chars. | ||
[3.4.9 / 2016-01-03](https://github.com/jakubpawlowicz/clean-css/compare/v3.4.8...v3.4.9) | ||
@@ -2,0 +7,0 @@ ================== |
@@ -9,2 +9,11 @@ function removeWhitespace(match, value) { | ||
function whitespaceReplacements(_, p1, p2, p3) { | ||
if (p1 && p2 && p3.length) | ||
return p1 + p2 + ' '; | ||
else if (p1 && p2) | ||
return p1 + p2; | ||
else | ||
return p2; | ||
} | ||
var CleanUp = { | ||
@@ -20,3 +29,3 @@ selectors: function (selectors, removeUnsupported, adjacentSpace) { | ||
.replace(/ ?, ?/g, ',') | ||
.replace(/\s*([>\+\~])\s*/g, '$1') | ||
.replace(/\s*(\\)?([>+~])(\s*)/g, whitespaceReplacements) | ||
.trim(); | ||
@@ -23,0 +32,0 @@ |
{ | ||
"name": "clean-css", | ||
"version": "3.4.9", | ||
"version": "3.4.10", | ||
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/jakubpawlowicz)", | ||
@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
299818
5813