File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -116,4 +116,31 @@ describe('options/sort-order', function() {
116116 assert . equal ( comb . processString ( input ) , expected ) ;
117117
118118 } ) ;
119+
120+ it ( 'Should parse semicolons inside data uri correctly' , function ( ) {
121+
122+ var config = {
123+ 'sort-order' : [
124+ [ 'position' , 'background' , 'color' ]
125+ ]
126+ } ;
127+
128+ var input = 'a\n' +
129+ '{\n' +
130+ '\tcolor: tomato;\n' +
131+ '\tbackground: #D2D2D2 no-repeat url(\'data:image/svg+xml;charset=US-ASCII.naninani\');\n' +
132+ '\tposition: absolute;\n' +
133+ '}' ;
134+
135+ var expected = 'a\n' +
136+ '{\n' +
137+ '\tposition: absolute;\n' +
138+ '\tbackground: #D2D2D2 no-repeat url(\'data:image/svg+xml;charset=US-ASCII.naninani\');\n' +
139+ '\tcolor: tomato;\n' +
140+ '}' ;
141+
142+ comb . configure ( config ) ;
143+ assert . equal ( comb . processString ( input ) , expected ) ;
144+
145+ } ) ;
119146} ) ;
You can’t perform that action at this time.
0 commit comments