Comparing version 0.0.17 to 0.0.18
@@ -5,3 +5,3 @@ { | ||
"description": "Port of YUI CSS Compressor to NodeJS", | ||
"version": "0.0.17", | ||
"version": "0.0.18", | ||
"keywords": [ | ||
@@ -8,0 +8,0 @@ "css", |
@@ -406,14 +406,13 @@ /** | ||
// preserve formulas in calc() before removing spaces | ||
pattern = /calc\(([^\)\()]*)\)/; | ||
var preserveCalc = function (ignore, f1) { | ||
preservedTokens.push('calc(' + f1.replace(/(^\s*|\s*$)/g, "") + ')'); | ||
pattern = /calc\(([^;}]*)\)/g; | ||
content = content.replace(pattern, function (ignore, f1) { | ||
preservedTokens.push( | ||
'calc(' + | ||
f1.replace(/(^\s*|\s*$)/g, "") | ||
.replace(/\( /g, "(") | ||
.replace(/ \)/g, ")") + | ||
')' | ||
); | ||
return "___PRESERVED_TOKEN_" + (preservedTokens.length - 1) + "___"; | ||
}; | ||
while (true) { | ||
if (pattern.test(content)) { | ||
content = content.replace(pattern, preserveCalc); | ||
} else { | ||
break; | ||
} | ||
} | ||
}); | ||
@@ -420,0 +419,0 @@ // preserve matrix |
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
6399345
117198