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:
parent
09f1157bbf
commit
020be85f51
|
@ -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($_);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue