var specialCommentsCount = context.specialComments.length;
var breakSuffix = options.keepBreaks ? lineBreak : '';
- replace(new RegExp('__CSSCOMMENT__(' + lineBreak + ')?', 'g'), function() {
+ replace(new RegExp('__CSSCOMMENT__(' + lineBreak + '| )?', 'g'), function() {
switch (options.keepSpecialComments) {
case '*':
return context.specialComments.shift() + breakSuffix;
'strip all': [
'/*! important comment */a{color:red}/* some comment *//*! important comment */',
'a{color:red}'
+ ],
+ 'move charset before': [
+ "/*! some comment */" + lineBreak + lineBreak + "@charset 'utf-8';" + lineBreak + lineBreak + "a{}",
+ "@charset 'utf-8';a{}"
]
}, { keepSpecialComments: 0 }),
'text content': cssContext({