File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed
Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3+ ## 0.0.13 - 2013-09-12
4+ - Fixed failing on empty files (#66 )
5+
36## 0.0.12 - 2013-09-11
47- Option: combinator-space
58- Readme update
Original file line number Diff line number Diff line change @@ -90,11 +90,9 @@ Comb.prototype = {
9090 * @param {String } filename
9191 */
9292 processString : function ( text , filename ) {
93+ if ( ! text ) return text ;
9394 var tree ;
9495 var string = JSON . stringify ;
95- if ( typeof text === 'undefined' ) {
96- throw new Error ( 'Undefined file content ' + filename + ': ' + string ( text ) ) ;
97- }
9896 try {
9997 tree = gonzales . srcToCSSP ( text ) ;
10098 } catch ( e ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " csscomb" ,
33 "description" : " CSS coding style formatter" ,
4- "version" : " 0.0.12 " ,
4+ "version" : " 0.0.13 " ,
55 "homepage" : " http://csscomb.com/" ,
66 "author" : " Mikhail Troshev <mishanga@yandex-team.ru>" ,
77 "repository" : " https://github.com/csscomb/csscomb.js" ,
You can’t perform that action at this time.
0 commit comments