Skip to content

Commit

Permalink
fix material icons with underscores
Browse files Browse the repository at this point in the history
when they get imported into iconify, they get translated to hyphens,
just like f7

Signed-off-by: Cody Cutrer <[email protected]>
  • Loading branch information
ccutrer committed Jun 28, 2024
1 parent a20f2da commit 1111e12
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OpenHABCore/Sources/OpenHABCore/Util/Endpoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ public extension Endpoint {
}
if source == "material" {
source = "iconify"
icon = icon.replacingOccurrences(of: "_", with: "-")
icon = "\(set)-\(icon)"
set = "ic"
}
Expand Down

0 comments on commit 1111e12

Please sign in to comment.