浏览代码

minor improvement of regex

tags/v3.3
Luke Smith 3 年前
父节点
当前提交
423112a3ab
找不到此签名对应的密钥 GPG 密钥 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


正在加载...
取消
保存