Skip to content

Commit 4d5da8e

Browse files
committed
Lowecase the name passed to make it more flexible.
1 parent 6d019f3 commit 4d5da8e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Aztec/Classes/TextKit/ColorProvider.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class ColorProvider {
4040
/// By default the the color available are the one defined in the HTML specification: https://www.w3schools.com/colors/colors_names.asp
4141
/// - Parameter name: the name of the color, or nil if the name is not available
4242
public func color(named name: String) -> UIColor? {
43-
if let color = htmlColors[name] {
43+
if let color = htmlColors[name.lowercased()] {
4444
return color
4545
}
4646

0 commit comments

Comments
 (0)