Skip to content

Commit 4c5c3e1

Browse files
authored
Merge pull request #4157 from smowton/smowton/cleanup/perl-regex-warning
Use $1 rather than \1 to refer to regex matching group
2 parents c103646 + d11c3f7 commit 4c5c3e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

regression/test.pl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ ($$$$$$$$$$)
7474
foreach my $key (@keys) {
7575
my $value = $defines->{$key};
7676
$options =~ s/(\$$key$|\$$key )/$value /g;
77-
$options =~ s/\$$key([:;])/$value\1/g; # Variables in --classpath are separated by (semi)colons
77+
$options =~ s/\$$key([:;])/$value$1/g; # Variables in --classpath are separated by (semi)colons
7878
}
7979
if (scalar @keys) {
8080
foreach my $word (split(/\s/, $options)) {

0 commit comments

Comments
 (0)