提交 444f29ce 编写于 作者: N Nick Woolley 提交者: Junio C Hamano

Remove archaic use of regex capture \1 in favour of $1

Using it will generate a perl warning "\1 better written as $1".
Signed-off-by: NNick Woolley <git.wu-lee@noodlefactory.co.uk>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 5d0e6343
......@@ -299,7 +299,7 @@
while (<FILTER_IN>)
{
my $line = $_;
$line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$\1\$/g;
$line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$$1\$/g;
print FILTER_OUT $line;
}
close FILTER_IN;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册