summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-02-26 12:37:13 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-02-26 12:37:13 -0500
commit4d411d81798f652fcdfd55d866c4e78f8867a9bc (patch)
tree3d211ed48475a0184413b7bc5d52a726f940dbd9 /bin/mw
parent203fa4f68eda843098f65f7ccd03caedf8231878 (diff)
avoid regex issue
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
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