Mercurial > gemma
changeset 3897:859210ee6440
Cosmetics: Don't lower the runes in the color strings used in class break definitions.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 10 Jul 2019 15:45:46 +0200 |
parents | 07b2df71bb4a |
children | e831344b94c6 |
files | pkg/models/colors.go |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/models/colors.go Wed Jul 10 15:34:23 2019 +0200 +++ b/pkg/models/colors.go Wed Jul 10 15:45:46 2019 +0200 @@ -143,11 +143,13 @@ return color.RGBA{} } s = strings.Map(func(r rune) rune { - if ('a' <= r && r <= 'f') || ('0' <= r && r <= '9') { + if ('0' <= r && r <= '9') || + ('a' <= r && r <= 'f') || + ('A' <= r && r <= 'F') { return r } return -1 - }, strings.ToLower(s)) + }, s) var v int64 v, err = strconv.ParseInt(s, 16, 64)