diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2021-02-11 10:29:44 -0500 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2021-02-11 10:29:44 -0500 |
| commit | 423112a3ab31806f9c6a6c075b9cceaf31139583 (patch) | |
| tree | 375f78861edbc8907b262eb7c4a1bfe93e4bd7b8 /bin/mw | |
| parent | ebb81bbcaa2f5ea694432396a4fcb0c000a1b88c (diff) | |
minor improvement of regex
Diffstat (limited to 'bin/mw')
| -rwxr-xr-x | bin/mw | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
