1. Zhang Huangbin
  2. iredadmin-ose

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
  • Branches default

Comments (0)

Files changed (1)

File libs/iredutils.py

View file
 # 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.
 ####