* Fixed issue [#165](https://github.com/GoalSmashers/clean-css/issues/165) - extra space after trailing parenthesis.
* Fixed issue [#186](https://github.com/GoalSmashers/clean-css/issues/186) - strip unit from 0rem.
+[2.0.6 / 2014-xx-xx (UNRELEASED)](https://github.com/GoalSmashers/clean-css/compare/v2.0.5...v2.0.6)
+==================
+
+* Fixed issue [#205](https://github.com/GoalSmashers/clean-css/issues/205) - freeze on broken @import declaration.
+
[2.0.5 / 2014-01-03](https://github.com/GoalSmashers/clean-css/compare/v2.0.4...v2.0.5)
==================
}
nextEnd = data.indexOf(';', nextStart);
- if (nextEnd == -1)
+ if (nextEnd == -1) {
+ tempData.push('');
+ cursor = data.length;
break;
+ }
tempData.push(data.substring(cursor, nextStart));
tempData.push(inlinedFile(data, nextStart, nextEnd, options));
"@import url('fake.css');",
''
],
+ 'of an unknown file with a missing trailing semicolon': [
+ "@import url(fake.css)",
+ ''
+ ],
'of a http file': "@import url(http://pro.goalsmashers.com/test.css);",
'of a https file': [
"@import url('https://pro.goalsmashers.com/test.css');",
'@import \'test/data/partials/one.css\' screen and (orientation:landscape);',
"@media screen and (orientation:landscape){.one{color:red}}"
],
+ 'of a real file with a missing trailing semicolon': [
+ "@import url(test/data/partials/one.css)",
+ ''
+ ],
+ 'of a real files with a missing trailing semicolon': [
+ "@import url(test/data/partials/one.css)@import url(test/data/partials/two.css)",
+ ''
+ ],
'of more files': [
"@import url(test/data/partials/one.css);\n\na{display:block}\n\n@import url(test/data/partials/extra/three.css);",
".one{color:red}a{display:block}.three{color:#0f0}"