Skip to content

Commit

Permalink
refactor: more
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Dec 21, 2022
1 parent 5d35ee2 commit d695d17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/swc_css_minifier/src/compressor/unicode_range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ impl Compressor {

for (idx, start_c) in start.chars().enumerate() {
if let Some(end_c) = &end.chars().nth(idx) {
if start_c.eq_ignore_ascii_case(end_c) && question_counter == 0 {
if start_c == *end_c && question_counter == 0 {
minified.push(start_c);
} else if start_c == '0' && end_c.eq_ignore_ascii_case(&'f') {
} else if start_c == '0' && *end_c == 'f' {
question_counter += 1;

minified.push('?')
Expand Down

0 comments on commit d695d17

Please sign in to comment.