commit 4d411d81798f652fcdfd55d866c4e78f8867a9bc
parent 203fa4f68eda843098f65f7ccd03caedf8231878
Author: Luke Smith <luke@lukesmith.xyz>
Date: Fri, 26 Feb 2021 12:37:13 -0500
avoid regex issue
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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