зеркало из https://github.com/microsoft/git.git
Merge branch 'fc/mutt-alias'
* fc/mutt-alias: send-email: fix mutt regex for grouped aliases
This commit is contained in:
Коммит
e12bfd86c1
|
@ -401,7 +401,7 @@ my %aliases;
|
|||
my %parse_alias = (
|
||||
# multiline formats can be supported in the future
|
||||
mutt => sub { my $fh = shift; while (<$fh>) {
|
||||
if (/^\s*alias\s+(\S+)\s+(.*)$/) {
|
||||
if (/^\s*alias\s+(?:-group\s+\S+\s+)*(\S+)\s+(.*)$/) {
|
||||
my ($alias, $addr) = ($1, $2);
|
||||
$addr =~ s/#.*$//; # mutt allows # comments
|
||||
# commas delimit multiple addresses
|
||||
|
|
Загрузка…
Ссылка в новой задаче