File tree 1 file changed +5
-5
lines changed 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -810,21 +810,21 @@ less.Parser = function Parser(env) {
810
810
811
811
if ( c === '>' || c === '+' || c === '~' ) {
812
812
i ++ ;
813
- while ( input . charAt ( i ) === ' ' ) { i ++ }
813
+ while ( input . charAt ( i ) . match ( / \s / ) ) { i ++ }
814
814
return new ( tree . Combinator ) ( c ) ;
815
815
} else if ( c === '&' ) {
816
816
match = '&' ;
817
817
i ++ ;
818
- if ( input . charAt ( i ) === ' ' ) {
818
+ if ( input . charAt ( i ) . match ( / \s / ) ) {
819
819
match = '& ' ;
820
820
}
821
- while ( input . charAt ( i ) === ' ' ) { i ++ }
821
+ while ( input . charAt ( i ) . match ( / \s / ) ) { i ++ }
822
822
return new ( tree . Combinator ) ( match ) ;
823
823
} else if ( c === ':' && input . charAt ( i + 1 ) === ':' ) {
824
824
i += 2 ;
825
- while ( input . charAt ( i ) === ' ' ) { i ++ }
825
+ while ( input . charAt ( i ) . match ( / \s / ) ) { i ++ }
826
826
return new ( tree . Combinator ) ( '::' ) ;
827
- } else if ( input . charAt ( i - 1 ) === ' ' ) {
827
+ } else if ( input . charAt ( i - 1 ) . match ( / \s / ) ) {
828
828
return new ( tree . Combinator ) ( " " ) ;
829
829
} else {
830
830
return new ( tree . Combinator ) ( null ) ;
You can’t perform that action at this time.
0 commit comments