Commits

Zhang Huangbin committed ebee51b

Allow to use longer top domain name in regular expression used to verify domain name and email address.

  • Participants
  • Parent commits a49e736

Comments (0)

Files changed (1)

libs/iredutils.py

 # Regular expressions.
 #
 # Email.
-reEmail = r'''[\w\-][\w\-\.]*@[\w\-][\w\-\.]+[a-zA-Z]{2,6}'''
+reEmail = r'''[\w\-][\w\-\.]*@[\w\-][\w\-\.]+[a-zA-Z]{2,10}'''
 
 # Domain.
-reDomain = r'''[\w\-][\w\-\.]*\.[a-z]{2,6}'''
+reDomain = r'''[\w\-][\w\-\.]*\.[a-z]{2,10}'''
 
 # End Regular expressions.
 ####