Selaa lähdekoodia

minor improvement of regex

tags/v3.3
Luke Smith 3 vuotta sitten
vanhempi
commit
423112a3ab
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      bin/mw

+ 1
- 1
bin/mw Näytä tiedosto

@@ -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


Ladataan…
Peruuta
Tallenna