diff options
| author | Kyren223 <Kyren223@proton.me> | 2024-11-27 17:44:38 +0200 |
|---|---|---|
| committer | Kyren223 <Kyren223@proton.me> | 2024-11-27 17:44:38 +0200 |
| commit | 0aa83227da57ae67ad9d06f1032cebaaff4e8dfa (patch) | |
| tree | fe87a90e19b1d55500be7fec6b51070ea2ce0793 /internal/server/api/helpers.go | |
| parent | 6a5131792f45b4494c9db727b1344becb742a488 (diff) | |
Fixed color issue on the server, made the UI have better UX
Diffstat (limited to 'internal/server/api/helpers.go')
| -rw-r--r-- | internal/server/api/helpers.go | 2 |
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" } |
