File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -345,7 +345,7 @@ our $trivial_function_threshold = 5;
345
345
our @omit_line_patterns ;
346
346
our @exclude_function_patterns ;
347
347
348
- our %languageExtensions = (' c' => ' c|h|i|| C|H|I|icc|cpp|cc|cxx|hh|hpp|hxx' ,
348
+ our %languageExtensions = (' c' => ' c|h|i|C|H|I|icc|cpp|cc|cxx|hh|hpp|hxx' ,
349
349
' rtl' => ' v|vh|sv|vhdl?' ,
350
350
' perl' => ' pl|pm' ,
351
351
' python' => ' py' ,
@@ -7616,12 +7616,12 @@ sub is_language
7616
7616
{
7617
7617
my ($lang , $filename ) = @_ ;
7618
7618
my $idx = index ($filename , ' .' );
7619
- my $ext = $idx == -1 ? ' ' : substr ($filename , $idx + 1 );
7619
+ my $ext = $idx == -1 ? ' ' : substr ($filename , $idx );
7620
7620
foreach my $l (split (' \|' , $lang )) {
7621
7621
die (" unknown language '$l '" )
7622
7622
unless exists ($lcovutil::languageExtensions {$l });
7623
7623
my $extensions = $lcovutil::languageExtensions {$l };
7624
- return 1 if ($ext =~ / ($extensions )/ );
7624
+ return 1 if ($ext =~ / \. ($extensions )$ / );
7625
7625
}
7626
7626
return 0;
7627
7627
}
You can’t perform that action at this time.
0 commit comments