Skip to content

Commit

Permalink
On par with clean-css 2.1.7.
Browse files Browse the repository at this point in the history
* Fixes processing `@import` statements inside comments.
  • Loading branch information
Jakub Pawlowicz committed Mar 29, 2014
1 parent e664045 commit d7ec2aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions clean-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var options = {
};
var cleanOptions = {};
var fromStdin = !process.env.__DIRECT__ && !process.stdin.isTTY;
var version = '2.1.6';
var version = '2.1.7';

// Arguments parsing (to drop optimist dependency)
var argv = process.argv.slice(2);
Expand Down Expand Up @@ -558,7 +558,7 @@ function ImportInliner(context) {
break;
}

shared.done.push(data.substring(cursor, nextStart));
shared.done.push(data.substring(0, nextStart));
shared.left.unshift([data.substring(nextEnd + 1), options]);

return afterContent(nextStart) ?
Expand Down
2 changes: 1 addition & 1 deletion test/binary-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ exports.commandsSuite = vows.describe('binary commands').addBatch({
}),
'version': binaryContext('-v', {
'should output help': function(error, stdout) {
assert.equal(stdout, '2.1.6\n');
assert.equal(stdout, '2.1.7\n');
}
}),
'stdin': pipedContext('a{color: #f00}', '', {
Expand Down

0 comments on commit d7ec2aa

Please sign in to comment.