Remove archaic use of regex capture \1 in favour of $1
PATCH 1/2 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]>
--- git-cvsexportcommit.perl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
git-cvsexportcommit.perl +1 -1
@@ -299,7 +299,7 @@ foreach my $f (@files) { 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;
Signature · 1 line
1.6.3.3