Accept upper-case hex digits for colors

This commit is contained in:
Sven Weidauer 2020-12-31 19:47:55 +01:00
parent 13f985c0a4
commit b1adcb158e

View file

@ -111,7 +111,7 @@ private extension Scanner {
}
private extension CharacterSet {
static let hex = CharacterSet(charactersIn: "0123456789abcdef")
static let hex = CharacterSet(charactersIn: "0123456789abcdefABCDEF")
static let name = alphanumerics.union(CharacterSet(charactersIn: "_/"))
}