From 7e2405029aa80a70fa573e83c7d5c1f00a22e6c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Sun, 15 Feb 2015 04:10:07 +0100 Subject: [PATCH] [fix] Consider new gTLDs in email and domain regex (fix #46) --- data/actionsmap/yunohost.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/actionsmap/yunohost.yml b/data/actionsmap/yunohost.yml index ca5ce6d3a..389a32581 100644 --- a/data/actionsmap/yunohost.yml +++ b/data/actionsmap/yunohost.yml @@ -124,7 +124,7 @@ user: ask: ask_email required: True pattern: &pattern_email - - !!str ^[\w.-]+@[\w.-]+\.[a-zA-Z]{2,6}$ + - !!str ^[\w.-]+@([^\W_A-Z]+([-]*[^\W_A-Z]+)*\.)+([^\W\d_]{2,})$ - "pattern_email" -p: full: --password @@ -248,7 +248,7 @@ domain: help: Domain name to add extra: 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" -d: full: --dyndns