[fix] Accept chinese/arabic domain

This commit is contained in:
ljf (zamentur) 2020-09-02 12:55:37 +02:00 committed by GitHub
parent dea6a18712
commit ef4c3066ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,7 +112,7 @@ user:
help: Domain for the email address and xmpp account help: Domain for the email address and xmpp account
extra: extra:
pattern: &pattern_domain pattern: &pattern_domain
- !!str ^([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$ - !!str ^([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+((xn--)?[^\W\d_]{2,})$
- "pattern_domain" - "pattern_domain"
-q: -q:
full: --mailbox-quota full: --mailbox-quota
@ -156,7 +156,7 @@ user:
full: --mail full: --mail
extra: extra:
pattern: &pattern_email pattern: &pattern_email
- !!str ^[\w.-]+@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$ - !!str ^[\w.-]+@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+((xn--)?[^\W\d_]{2,})$
- "pattern_email" - "pattern_email"
-p: -p:
full: --change-password full: --change-password