postcss-minify-selectors
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -0,1 +1,5 @@ | ||
# 1.3.1 | ||
* Fixes a crash when nothing was passed to `node-balanced`. | ||
# 1.3.0 | ||
@@ -2,0 +6,0 @@ |
23
index.js
@@ -49,12 +49,15 @@ 'use strict'; | ||
rule.selector = roq(selector, function (range) { | ||
// Trim any useless space inside negation pseudo classes | ||
range = balanced.replacements({ | ||
source: range, | ||
open: ':not(', | ||
close: ')', | ||
replace: function (body, head, tail) { | ||
return head + uniq(body) + tail; | ||
} | ||
}); | ||
return range.replace(/\s*([>+~])\s*/g, '$1'); | ||
// Trim any useless space inside negation pseudo classes | ||
if (range) { | ||
range = balanced.replacements({ | ||
source: range, | ||
open: ':not(', | ||
close: ')', | ||
replace: function (body, head, tail) { | ||
return head + uniq(body) + tail; | ||
} | ||
}); | ||
return range.replace(/\s*([>+~])\s*/g, '$1'); | ||
} | ||
return range; | ||
}); | ||
@@ -61,0 +64,0 @@ } |
{ | ||
"name": "postcss-minify-selectors", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "Minify selectors with PostCSS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
9129
159