Skip to content

Commit 444f29c

Browse files
rushkoffgitster
authored andcommitted
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: Nick Woolley <git.wu-lee@noodlefactory.co.uk> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 5d0e634 commit 444f29c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

git-cvsexportcommit.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@
299299
while (<FILTER_IN>)
300300
{
301301
my $line = $_;
302-
$line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$\1\$/g;
302+
$line =~ s/\$([A-Z][a-z]+):[^\$]+\$/\$$1\$/g;
303303
print FILTER_OUT $line;
304304
}
305305
close FILTER_IN;

0 commit comments

Comments
 (0)