瀏覽代碼

avoid regex issue

tags/v3.3
Luke Smith 5 年之前
父節點
當前提交
4d411d8179
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4C50B54A911F6252
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw 查看文件

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


Loading…
取消
儲存