diff options
-rwxr-xr-x | tools/checkAPIs.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index c8196e35bf..679a364242 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -2011,7 +2011,7 @@ if (!$result || $help_flag) { if ($pre_commit) { my $filename = $ARGV[0]; # if the filename is packet-*.c or packet-*.h, then we set the abort and termoutput groups. - if ($filename =~ /\bpacket-\w+\.[ch]$/) { + if ($filename =~ /\bpacket-[^\/\\]+\.[ch]$/) { push @apiGroups, "abort"; push @apiGroups, "termoutput"; } |