From 23538b3a7fafb0f396a57099e297979115f042f6 Mon Sep 17 00:00:00 2001 From: Cody Cutrer Date: Sat, 29 Jun 2024 20:22:32 -0600 Subject: [PATCH] fix material icons with underscores (#767) when they get imported into iconify, they get translated to hyphens, just like f7 Signed-off-by: Cody Cutrer Co-authored-by: Dan Cunningham --- 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" }