From 077622f5d37d5ce5a1532daab86e257e0cfb5aaa Mon Sep 17 00:00:00 2001 From: lsy Date: Mon, 23 Sep 2024 01:56:58 +0800 Subject: [PATCH] =?UTF-8?q?acme=E6=9B=B4=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Other/Acme.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Config/Other/Acme.sh b/Config/Other/Acme.sh index 9fbe077..69470f6 100644 --- a/Config/Other/Acme.sh +++ b/Config/Other/Acme.sh @@ -5,7 +5,7 @@ if [[ ! -f "${HOME}/.acme.sh/acme.sh" ]];then declare mail declare domain read -p "请输入用来申请域名的邮箱:" mail - if [[ ! $mail =~ \w+@\w+\.[a-z]+ ]];then + if [[ ! $mail =~ \b[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,6}\b ]];then echo "邮箱不合法" exit fi @@ -81,7 +81,7 @@ case $pick_mode in declare CF_Key declare CF_Email read -p "请输入cloudflare的邮箱:" CF_Email - if [[ ! $CF_Email =~ \w+@\w+\.[a-z]+ ]];then + if [[ ! $CF_Email =~ \b[\w.%+-]+@[\w.-]+\.[a-zA-Z]{2,6}\b ]];then echo "邮箱不合法" exit fi