From 33bb8e3ada2aa5700ef7171244b0f693a386f530 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Jun 16 2015 15:19:45 +0000 Subject: Allow spaces in the tag fields and use this regex when updating a ticket --- diff --git a/pagure/forms.py b/pagure/forms.py index a97e943..def581f 100644 --- a/pagure/forms.py +++ b/pagure/forms.py @@ -15,7 +15,7 @@ import wtforms STRICT_REGEX = '^[a-zA-Z0-9-_]+$' -TAGS_REGEX = '^[a-zA-Z0-9-_,]+$' +TAGS_REGEX = '^[a-zA-Z0-9-_, .]+$' class ProjectFormSimplified(wtf.Form): @@ -146,7 +146,7 @@ class UpdateIssueForm(wtf.Form): 'tag', [ wtforms.validators.Optional(), - wtforms.validators.Regexp(STRICT_REGEX, flags=re.IGNORECASE) + wtforms.validators.Regexp(TAGS_REGEX, flags=re.IGNORECASE) ] ) depends = wtforms.TextField(