Skip to content

Commit

Permalink
regexp typo (error in perl/5.32)
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Cox <[email protected]>
  • Loading branch information
henry2cox committed Dec 21, 2024
1 parent 58e4581 commit b34c844
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/lcovutil.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4507,8 +4507,8 @@ sub addAlias
my $len = length($name);
# penalize lambda functions so that their name is not chosen
# (java workaround or ugly hack, depending on your perspective)
$curlen += 1000 if $self->[NAME] =~ /({lambda\(|\.lambda\$)/;
$len += 1000 if $name =~ /({lambda\(|\.lambda\$)/;
$curlen += 1000 if $self->[NAME] =~ /(\{lambda\(|\.lambda\$)/;
$len += 1000 if $name =~ /(\{lambda\(|\.lambda\$)/;
$self->[NAME] = $name
if ($len < $curlen || # alias is shorter
($len == $curlen && # alias is same length but lexically first
Expand Down

0 comments on commit b34c844

Please sign in to comment.