send-email: simplify sendmail aliases comment and blank line recognizer

Replace unnecessarily complex regular expression for recognizing comment and blank lines in sendmail aliases with idiomatic expressions which can be easily understood at a glance. Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Eric Sunshine committed May 31, 2015 at 18:29 UTC 020be85f5153e2a3a231e40fe81af9e4a1c01cd4
1 file changed +1 -1
git-send-email.perl
+1 -1
@@ -505,7 +505,7 @@ sub parse_sendmail_alias {
505 sub parse_sendmail_aliases {
506 my $fh = shift;
507 while (<$fh>) {
508 - if (/^\s*(?:#.*)?$/) { next; }
508 + next if /^\s*$/ || /^\s*#/;
509 parse_sendmail_alias($_);
510 }
511 }