From 423112a3ab31806f9c6a6c075b9cceaf31139583 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Thu, 11 Feb 2021 10:29:44 -0500 Subject: [PATCH] minor improvement of regex --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index 129cda2..0da655e 100755 --- a/bin/mw +++ b/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