From: Eric Sunshine Date: Sun, 31 May 2015 22:29:28 +0000 (-0400) Subject: send-email: simplify sendmail aliases comment and blank line recognizer X-Git-Tag: v2.5.0-rc0~28^2~4 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/020be85f5153e2a3a231e40fe81af9e4a1c01cd4 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 Signed-off-by: Junio C Hamano --- diff --git a/git-send-email.perl b/git-send-email.perl index 76bb499fbb..e777bd3a60 100755 --- a/git-send-email.perl +++ b/git-send-email.perl @@ -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($_); } }