diff options
author | Peter Wu <peter@lekensteyn.nl> | 2015-02-19 23:58:41 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-02-21 13:19:38 +0000 |
commit | c1b672cf23dc2f3e55dc37e84099240932953806 (patch) | |
tree | 9cfd8fdd07c968f9c666a8f29056ad967bc071ba /tools/checkAPIs.pl | |
parent | 5012cf84e6d84a448171dac64c14d9c83e3d4ae6 (diff) | |
download | wireshark-c1b672cf23dc2f3e55dc37e84099240932953806.tar.gz |
checkAPIs: match packet-*.[ch], independent of locale
In perl, the \w character group seems to match '-' depending on the
locale. On Linux (with the C or en_US.UTF-8 locale), packet-ssl-utils.c
does not match.
This patch makes the regex match anything except for the path separator.
Change-Id: I27543072295af5f2bd5ea8ab36e5d913bebf7d85
Reviewed-on: https://code.wireshark.org/review/7266
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'tools/checkAPIs.pl')
-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"; } |