Skip to content
Snippets Groups Projects
Commit c84d2169 authored by Thorge Petersen's avatar Thorge Petersen
Browse files

Fixed typo in tag validator regex

parent 15b43573
Branches
Tags
1 merge request!48Merge dev into master
......@@ -317,7 +317,7 @@ def validate_formats(data, errors):
def tag_name_validator(value, context):
"""Allow tag name to contain any characters but no newlines
"""
tagname_match = re.compile(r'/^(?=.*[^\n])[^\n]*$', re.UNICODE)
tagname_match = re.compile(r'^(?=.*[^\n])[^\n]*$', re.UNICODE)
if not tagname_match.match(value):
raise toolkit.Invalid(_('Invalid tag: "%s". Tags cannot contain line breaks.') % (value))
return value
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment