From 4d411d81798f652fcdfd55d866c4e78f8867a9bc Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Fri, 26 Feb 2021 12:37:13 -0500 Subject: avoid regex issue --- bin/mw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mw b/bin/mw index 501f2e3..111c8d5 100755 --- a/bin/mw +++ b/bin/mw @@ -183,7 +183,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 "^.+@.+\.[A-z]+$"; do + while ! echo "$fulladdr" | grep -qE "^.+@.+\.[A-Za-z]+$"; do echo "\`$fulladdr\` is not a valid email address. Please retype the address:" read -r fulladdr done -- cgit v1.2.3