diff options
author | Clar Fon <usr@ltdk.xyz> | 2022-02-07 16:21:02 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 21:21:02 +0000 |
commit | 9911b66aea076347cfb271b12c90bc31e4e5b5f8 (patch) | |
tree | 5f979a4f62479e6f78fdb8653bc18df9c77b7136 /services | |
parent | 3a91f845e81aae386afb0210f3a66b88109e99a2 (diff) | |
download | gitea-9911b66aea076347cfb271b12c90bc31e4e5b5f8.tar.gz gitea-9911b66aea076347cfb271b12c90bc31e4e5b5f8.zip |
Be more lenient with label colors (#17752)
Accept 12-bit color specifications.
Diffstat (limited to 'services')
-rw-r--r-- | services/forms/repo_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index e6bd088da4..b32bd3cafd 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -549,7 +549,7 @@ type CreateLabelForm struct { ID int64 Title string `binding:"Required;MaxSize(50)" locale:"repo.issues.label_title"` Description string `binding:"MaxSize(200)" locale:"repo.issues.label_description"` - Color string `binding:"Required;Size(7)" locale:"repo.issues.label_color"` + Color string `binding:"Required;MaxSize(7)" locale:"repo.issues.label_color"` } // Validate validates the fields |