From f8c7375b01314589d1b227be29e239e02896af23 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 8 Oct 2017 21:38:28 +0200 Subject: [PATCH] server/tags: allow uppercase tag category colors i.e. colors such as "#FF0000" --- server/szurubooru/func/tag_categories.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/szurubooru/func/tag_categories.py b/server/szurubooru/func/tag_categories.py index bec2f0d..f1951a8 100644 --- a/server/szurubooru/func/tag_categories.py +++ b/server/szurubooru/func/tag_categories.py @@ -105,7 +105,7 @@ def update_category_color(category: model.TagCategory, color: str) -> None: assert category if not color: raise InvalidTagCategoryColorError('Color cannot be empty.') - if not re.match(r'^#?[0-9a-z]+$', color): + if not re.match(r'^#?[0-9A-Za-z]+$', color): raise InvalidTagCategoryColorError('Invalid color.') if util.value_exceeds_column_size(color, model.TagCategory.color): raise InvalidTagCategoryColorError('Color is too long.')