[fix] Consider new gTLDs in email and domain regex (fix #46)

This commit is contained in:
Jérôme Lebleu 2015-02-15 04:10:07 +01:00
parent 79fbb19f41
commit 7e2405029a

View file

@ -124,7 +124,7 @@ user:
ask: ask_email ask: ask_email
required: True required: True
pattern: &pattern_email pattern: &pattern_email
- !!str ^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$ - !!str ^[\w.-]+@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$
- "pattern_email" - "pattern_email"
-p: -p:
full: --password full: --password
@ -248,7 +248,7 @@ domain:
help: Domain name to add help: Domain name to add
extra: extra:
pattern: &pattern_domain pattern: &pattern_domain
- !!str ^([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+[a-z]{2,}$ - !!str ^([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$
- "pattern_domain" - "pattern_domain"
-d: -d:
full: --dyndns full: --dyndns