Skip to content

Commit

Permalink
FIx
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Oct 5, 2022
1 parent df182d5 commit 43f53f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_ecma_minifier/src/compress/pure/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ impl Pure<'_> {
return;
}

if !s.value.starts_with('0') && s.value.len() > 1 {
if !s.value.starts_with('0') || s.value.len() <= 1 {
if let Ok(v) = s.value.parse::<u32>() {
self.changed = true;
report_change!("misc: Optimizing numeric property name");
Expand Down

0 comments on commit 43f53f4

Please sign in to comment.