jaromail

a commandline tool to easily and privately handle your e-mail
git clone git://parazyd.org/jaromail.git
Log | Files | Refs | Submodules | README

commit fc2859ba14eaaa4ec6f3edfa3507ce0a2a5d72f3
parent 88a44c1208f1d5e1797cc78962b4369dc2dfeddf
Author: parazyd <parazyd@dyne.org>
Date:   Wed, 30 Aug 2017 10:48:33 +0200

replace isemail() zsh regex check with grep. -regex-match is gone in zsh

Diffstat:
Msrc/zlibs/helpers | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/zlibs/helpers b/src/zlibs/helpers @@ -49,7 +49,7 @@ awk '{ for (i=1;i<=NF;i++) # zmodload zsh/regex isemail() { - [[ $1 -regex-match '\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}\b' ]] && return 0 + print "$1" | grep -q -E '[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,6}' && return 0 return 1 }