﻿id	summary	reporter	owner	description	type	status	priority	component	severity	resolution	keywords	cc	release
13473	Allow regex to allow empty fields	jsnell@…		"This diff will allow the regex to allow for an empty field or a match.  

Then, if a value is always required a rule with .+ instead of .* could be used instead.

Index: ticketvalidator.py
===================================================================
--- ticketvalidator.py	(revision 17283)
+++ ticketvalidator.py	(working copy)
@@ -82,7 +82,7 @@
             fieldValue = req.args.get(field)

         if fieldValue is not None:
-            if not fieldValue or (rule and re.match(rule, fieldValue) is None):
+            if (rule and re.match(rule, fieldValue) is None):
                 return errorMessage

     def _isValidateEmail(self, email):"	enhancement	new	normal	TracTicketValidatorPlugin	normal				
