mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Consider new gTLDs in email and domain regex (fix #46)
This commit is contained in:
parent
79fbb19f41
commit
7e2405029a
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue