clean-css
Advanced tools
Comparing version 4.1.2 to 4.1.3
@@ -31,2 +31,3 @@ var Marker = require('./marker'); | ||
var REPEAT_PATTERN = /^\[\s*\d+\s*\]$/; | ||
var RULE_WORD_SEPARATOR_PATTERN = /[\s\(]/; | ||
@@ -381,2 +382,8 @@ var TAIL_BROKEN_VALUE_PATTERN = /[\s|\}]*$/; | ||
buffer = []; | ||
} else if (character == Marker.CLOSE_SQUARE_BRACKET && propertyToken && propertyToken.length > 1 && buffer.length > 0 && isRepeatToken(buffer)) { | ||
buffer.push(character); | ||
serializedBuffer = buffer.join('').trim(); | ||
propertyToken[propertyToken.length - 1][1] += serializedBuffer; | ||
buffer = []; | ||
} else if ((isSpace || (isNewLineNix && !isNewLineWin)) && level == Level.RULE && seekingValue && propertyToken && buffer.length > 0) { | ||
@@ -465,2 +472,6 @@ // space or *nix newline within property, e.g. a{margin:0 <-- | ||
function isRepeatToken(buffer) { | ||
return REPEAT_PATTERN.test(buffer.join('') + Marker.CLOSE_SQUARE_BRACKET); | ||
} | ||
module.exports = tokenize; |
{ | ||
"name": "clean-css", | ||
"version": "4.1.2", | ||
"version": "4.1.3", | ||
"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
415503
8802