ソースを参照

Fix -g error when mail address having a digit before @

Kevin Cui 5 年 前
コミット
07fd033f0a
1 ファイル変更1 行追加1 行削除
  1. 1 1
      tmpmail

+ 1 - 1
tmpmail

@@ -107,7 +107,7 @@ generate_email_address() {
 
         # Do a regex check to see if the email address provided by the user is a
         # valid email address
-        REGEXP="[a-z]+@1secmail\.(com|net|org)"
+        REGEXP="[a-z0-9]+@1secmail\.(com|net|org)"
         printf "%b" "$EMAIL_ADDRESS" | grep -E "$REGEXP" >/dev/null
 
         # Get the exit status of the command above