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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5d0e634 commit 444f29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)