Modify

Opened 3 years ago

#8829 new defect

allow user name with email

Reported by: Srl295 Owned by: superafroman
Priority: normal Component: TicketValidatorPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

not just u@… but Some User <u@…>

Index: ticketvalidator/ticketvalidator.py
===================================================================
--- ticketvalidator/ticketvalidator.py	(revision 10228)
+++ ticketvalidator/ticketvalidator.py	(working copy)
@@ -91,5 +91,7 @@
         if len(email) > 7:
             if re.match("^[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,6}$", email) != None:
                 return True
+            if re.match("^[^<]*<[a-zA-Z0-9._%-]+@[a-zA-Z0-9._%-]+\.[a-zA-Z]{2,6}>$", email) != None:
+                return True
         return False
 

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new The owner will remain superafroman.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.