1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-05 15:16:34 +02:00

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>
This commit is contained in:
Eric Sunshine 2015-05-31 18:29:28 -04:00 committed by Junio C Hamano
parent 09f1157bbf
commit 020be85f51

View File

@ -505,7 +505,7 @@ sub parse_sendmail_alias {
sub parse_sendmail_aliases {
my $fh = shift;
while (<$fh>) {
if (/^\s*(?:#.*)?$/) { next; }
next if /^\s*$/ || /^\s*#/;
parse_sendmail_alias($_);
}
}