Comments were incorrectly processed when universal selector was placed in between.
* Fixed issue [#207](https://github.com/GoalSmashers/clean-css/issues/207) - bug in parsing protocol `@import`s.
* Fixed issue [#213](https://github.com/GoalSmashers/clean-css/issues/213) - faster rgb to hex transforms.
* Fixed issue [#218](https://github.com/GoalSmashers/clean-css/issues/218) - `@import` statements cleanup.
+* Fixed issue [#220](https://github.com/GoalSmashers/clean-css/issues/220) - selector between comments.
[2.0.7 / 2014-01-16](https://github.com/GoalSmashers/clean-css/compare/v2.0.6...v2.0.7)
==================
var cursor = 0;
for (; nextEnd < data.length;) {
- nextStart = data.indexOf('/*', nextEnd);
+ nextStart = data.indexOf('/*', cursor);
nextEnd = data.indexOf('*/', nextStart + 2);
if (nextStart == -1 || nextEnd == -1)
break;
'should properly handle line breaks and ** characters inside comments': [
'/**====**\\\n/**2nd comment line/**===**/a{color:red}',
'a{color:red}'
+ ],
+ 'selector between comments': [
+ '/*comment*/*/*comment*/{color:red}',
+ '*{color:red}'
]
}),
'important comments - one': cssContext({