From 1111e1221d2e9bc2797aec894f5fd6a65186bcd7 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Fri, 28 Jun 2024 08:13:34 -0600 Subject: [PATCH] fix material icons with underscores when they get imported into iconify, they get translated to hyphens, just like f7 Signed-off-by: Cody Cutrer --- OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift b/OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift index 775eebc6..cf63b0b3 100644 --- a/OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift +++ b/OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift @@ -177,6 +177,7 @@ public extension Endpoint { } if source == "material" { source = "iconify" + icon = icon.replacingOccurrences(of: "_", with: "-") icon = "\(set)-\(icon)" set = "ic" }