Skip to content

Commit

Permalink
Fix whitespace removal
Browse files Browse the repository at this point in the history
Changed regex detection pattern
  • Loading branch information
ellisdickinson46 committed Mar 31, 2023
1 parent 4db245c commit fd16cad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ custom_card_sisimomo_printer:
}
// Removes unnecessary whitespace from inline CSS
cartridge.bar_style = cartridge.bar_style.replace(/\s+/g, '')
cartridge.bar_style = cartridge.bar_style.replace(/\s{2,}/g, '')
return `
<div class="label">${cartridge.label}</div>
<div class="container-bar">
Expand Down

0 comments on commit fd16cad

Please sign in to comment.