Skip to content

Commit b34c844

Browse files
committed
regexp typo (error in perl/5.32)
Signed-off-by: Henry Cox <[email protected]>
1 parent 58e4581 commit b34c844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/lcovutil.pm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4507,8 +4507,8 @@ sub addAlias
45074507
my $len = length($name);
45084508
# penalize lambda functions so that their name is not chosen
45094509
# (java workaround or ugly hack, depending on your perspective)
4510-
$curlen += 1000 if $self->[NAME] =~ /({lambda\(|\.lambda\$)/;
4511-
$len += 1000 if $name =~ /({lambda\(|\.lambda\$)/;
4510+
$curlen += 1000 if $self->[NAME] =~ /(\{lambda\(|\.lambda\$)/;
4511+
$len += 1000 if $name =~ /(\{lambda\(|\.lambda\$)/;
45124512
$self->[NAME] = $name
45134513
if ($len < $curlen || # alias is shorter
45144514
($len == $curlen && # alias is same length but lexically first

0 commit comments

Comments
 (0)