clean-css
Advanced tools
Comparing version 4.1.8 to 4.1.9
@@ -11,3 +11,8 @@ var populateComponents = require('./properties/populate-components'); | ||
var keyframeRegex = /^@(\-moz\-|\-o\-|\-webkit\-)?keyframes /; | ||
var optionalMatchingQuotesRegex = /^(['"]?)(.*)\1$/; | ||
function removeQuotes(value) { | ||
return value.replace(optionalMatchingQuotesRegex, '$2'); | ||
} | ||
function removeUnusedAtRules(tokens, context) { | ||
@@ -111,3 +116,3 @@ removeUnusedAtRule(tokens, matchCounterStyle, markCounterStylesAsUsed, context); | ||
if (property[1][1] == 'font-family') { | ||
match = property[2][1].toLowerCase(); | ||
match = removeQuotes(property[2][1].toLowerCase()); | ||
atRules[match] = atRules[match] || []; | ||
@@ -139,3 +144,3 @@ atRules[match].push(token); | ||
for (j = 0, m = component.value.length; j < m; j++) { | ||
normalizedMatch = component.value[j][1].toLowerCase(); | ||
normalizedMatch = removeQuotes(component.value[j][1].toLowerCase()); | ||
@@ -152,3 +157,3 @@ if (normalizedMatch in atRules) { | ||
for (j = 2, m = property.length; j < m; j++) { | ||
normalizedMatch = property[j][1].toLowerCase(); | ||
normalizedMatch = removeQuotes(property[j][1].toLowerCase()); | ||
@@ -155,0 +160,0 @@ if (normalizedMatch in atRules) { |
{ | ||
"name": "clean-css", | ||
"version": "4.1.8", | ||
"version": "4.1.9", | ||
"author": "Jakub Pawlowicz <contact@jakubpawlowicz.com> (http://twitter.com/jakubpawlowicz)", | ||
@@ -5,0 +5,0 @@ "description": "A well-tested CSS minifier", |
Sorry, the diff of this file is too big to display
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
420178
8870