Comparing version 0.0.14 to 0.0.15
@@ -5,3 +5,9 @@ { | ||
"description": "Port of YUI CSS Compressor to NodeJS", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"keywords": [ | ||
"css", | ||
"stylesheet", | ||
"uglify", | ||
"minify" | ||
], | ||
"license": "MIT", | ||
@@ -8,0 +14,0 @@ "homepage": "https://github.com/fmarcia/UglifyCSS", |
@@ -280,3 +280,4 @@ /** | ||
lines = [], | ||
vars = {}; | ||
vars = {}, | ||
partial; | ||
@@ -289,10 +290,15 @@ options = options || defaultOptions; | ||
content = content.split("/*"); | ||
partial = ""; | ||
for (i = 0, c = content.length; i < c; ++i) { | ||
endIndex = content[i].indexOf("*/"); | ||
if (endIndex > -1) { | ||
comments.push(content[i].slice(0, endIndex)); | ||
comments.push(partial + content[i].slice(0, endIndex)); | ||
partial = ""; | ||
content[i] = "/*___PRESERVE_CANDIDATE_COMMENT_" + (comments.length - 1) + "___" + content[i].slice(endIndex); | ||
} else if (i > 0) { | ||
partial += content[i]; | ||
content[i] = ""; | ||
} | ||
} | ||
content = content.join(""); | ||
content = content.join("") + partial; | ||
@@ -299,0 +305,0 @@ // preserve strings so their content doesn't get accidentally minified |
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
32712
655