From fd16cad276d00e00d32c7c04b1d35ef162cb373d Mon Sep 17 00:00:00 2001 From: Ellis Dickinson Date: Fri, 31 Mar 2023 13:04:17 +0100 Subject: [PATCH] Fix whitespace removal Changed regex detection pattern --- .../custom_card_sisimomo_printer.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_cards/custom_card_sisimomo_printer/custom_card_sisimomo_printer.yaml b/custom_cards/custom_card_sisimomo_printer/custom_card_sisimomo_printer.yaml index 3ca1d57c6..30315c9f4 100644 --- a/custom_cards/custom_card_sisimomo_printer/custom_card_sisimomo_printer.yaml +++ b/custom_cards/custom_card_sisimomo_printer/custom_card_sisimomo_printer.yaml @@ -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 `
${cartridge.label}