summaryrefslogtreecommitdiff
path: root/internal/server/api
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server/api')
-rw-r--r--internal/server/api/helpers.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/server/api/helpers.go b/internal/server/api/helpers.go
index 967f308..0918e66 100644
--- a/internal/server/api/helpers.go
+++ b/internal/server/api/helpers.go
@@ -13,7 +13,7 @@ func isValidHexColor(color string) (bool, string) {
return false, "color must start with '#'"
}
- for _, c := range color {
+ for _, c := range color[1:] {
if !strings.ContainsRune(hex, c) {
return false, "color must start with '#' and contain exactly 6 digits 0-9, a-f, A-F"
}