Skip to content

Commit

Permalink
fix material icons with underscores (#767)
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]>
Co-authored-by: Dan Cunningham <[email protected]>
  • Loading branch information
ccutrer and digitaldan authored Jun 30, 2024
1 parent 9861666 commit 23538b3
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 23538b3

Please sign in to comment.