From ad64a1d99c184c7b0ab16795530f8bc040c5663e Mon Sep 17 00:00:00 2001 From: Alois Mahdal Date: Jul 27 2018 07:55:13 +0000 Subject: Allow colon inside tag name One example where colons are useful is when implementing debtags-like tags (Faceted Classification). For example: isa::bug isa::rfe severity::high severity::low The double colon here makes it easier to recognize the fact that Faceted Classification is being used. Related to https://pagure.io/pagure/issue/3406 Merges https://pagure.io/pagure/pull-request/3458 --- diff --git a/pagure/forms.py b/pagure/forms.py index 58281db..208bd29 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -33,7 +33,7 @@ from pagure.utils import urlpattern STRICT_REGEX = '^[a-zA-Z0-9-_]+$' -TAGS_REGEX = '^[a-zA-Z0-9-_, .]+$' +TAGS_REGEX = '^[a-zA-Z0-9-_, .:]+$' FALSE_VALUES = ('false', '', False, 'False', 0, '0') WTF_VERSION = tuple()