author | Junio C Hamano <junkio@cox.net> | |
Tue, 6 Jun 2006 07:05:56 +0000 (00:05 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 6 Jun 2006 07:05:56 +0000 (00:05 -0700) | ||
commit | ad9c18f5045281ddd109c54451f1b4ebfb0d3567 | |
tree | b0bc9c61a73b1d9a2f76c095b480d3759ba50dc0 | tree | snapshot |
parent | e96fd30553bb57a76ad38f703a3fea5b53c45ff9 | commit | diff |
send-email: be more lenient and just catch obvious mistakes.
This cleans up the pattern matching subroutine by introducing
two variables to hold regexp to approximately match local-part
and domain in the e-mail address. It is meant to catch obvious
mistakes with a cheap check.
The patch also moves "scalar" to force Email::Valid->address()
to work in !wantarray environment to extract_valid_address;
earlier it was in the caller of the subroutine, which was way
too error prone.
Signed-off-by: Junio C Hamano <junkio@cox.net>
This cleans up the pattern matching subroutine by introducing
two variables to hold regexp to approximately match local-part
and domain in the e-mail address. It is meant to catch obvious
mistakes with a cheap check.
The patch also moves "scalar" to force Email::Valid->address()
to work in !wantarray environment to extract_valid_address;
earlier it was in the caller of the subroutine, which was way
too error prone.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-send-email.perl | diff | blob | history |