We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58e4581 commit b34c844Copy full SHA for b34c844
lib/lcovutil.pm
@@ -4507,8 +4507,8 @@ sub addAlias
4507
my $len = length($name);
4508
# penalize lambda functions so that their name is not chosen
4509
# (java workaround or ugly hack, depending on your perspective)
4510
- $curlen += 1000 if $self->[NAME] =~ /({lambda\(|\.lambda\$)/;
4511
- $len += 1000 if $name =~ /({lambda\(|\.lambda\$)/;
+ $curlen += 1000 if $self->[NAME] =~ /(\{lambda\(|\.lambda\$)/;
+ $len += 1000 if $name =~ /(\{lambda\(|\.lambda\$)/;
4512
$self->[NAME] = $name
4513
if ($len < $curlen || # alias is shorter
4514
($len == $curlen && # alias is same length but lexically first
0 commit comments