瀏覽代碼

minor improvement of regex

tags/v3.3
Luke Smith 3 年之前
父節點
當前提交
423112a3ab
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: 4C50B54A911F6252
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw 查看文件

@@ -184,7 +184,7 @@ delete() { if [ -z "${fulladdr+x}" ]; then
askinfo() { \
[ -z "$fulladdr" ] && echo "Give the full email address to add:" &&
read -r fulladdr
while ! echo "$fulladdr" | grep -qE ".+@.+\..+"; do
while ! echo "$fulladdr" | grep -qE "^.+@.+\.[A-z]+$"; do
echo "\`$fulladdr\` is not a valid email address. Please retype the address:"
read -r fulladdr
done


Loading…
取消
儲存