Merge branch 'jk/send-email-rtrim-mailrc-alias' into maint
"git send-email" had trouble parsing alias file in mailrc format when lines in it had trailing whitespaces on them. * jk/send-email-rtrim-mailrc-alias: send-email: ignore trailing whitespace in mailrc alias file
This commit is contained in:
commit
8cad7fcfbc
@ -533,7 +533,7 @@ my %parse_alias = (
|
||||
$aliases{$alias} = \@addr
|
||||
}}},
|
||||
mailrc => sub { my $fh = shift; while (<$fh>) {
|
||||
if (/^alias\s+(\S+)\s+(.*)$/) {
|
||||
if (/^alias\s+(\S+)\s+(.*?)\s*$/) {
|
||||
# spaces delimit multiple addresses
|
||||
$aliases{$1} = [ quotewords('\s+', 0, $2) ];
|
||||
}}},
|
||||
|
Loading…
Reference in New Issue
Block a user