aboutsummaryrefslogtreecommitdiff
path: root/connect.c
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2006-06-06 00:05:56 -0700
committerJunio C Hamano <junkio@cox.net>2006-06-06 00:05:56 -0700
commitad9c18f5045281ddd109c54451f1b4ebfb0d3567 (patch)
treeb0bc9c61a73b1d9a2f76c095b480d3759ba50dc0 /connect.c
parente96fd30553bb57a76ad38f703a3fea5b53c45ff9 (diff)
downloadgit-ad9c18f5045281ddd109c54451f1b4ebfb0d3567.tar.gz
git-ad9c18f5045281ddd109c54451f1b4ebfb0d3567.tar.xz
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>
Diffstat (limited to 'connect.c')
0 files changed, 0 insertions, 0 deletions