(Minor) Disable un-needed 'capture' in regexp
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Jul 2008 23:15:07 +0000 (23:15 +0000)
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 23 Jul 2008 23:15:07 +0000 (23:15 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25811 f5534014-38df-0310-8fa8-9805f1628bb7

tools/checkAPIs.pl

index a9d0f6ac58feae0260fa5986c1a229b06cbdf233..65a15402bfe4ac4279650d0a1f600d28a1272de8 100755 (executable)
@@ -283,7 +283,7 @@ while ($_ = $ARGV[0])
                #    "... const value_string ... = { ... ;" (possibly over multiple lines) 
                # ToDo: investigate cases in Wireshark code of value_string definitions such as
                #        "const value_string ...;".
-               while ($fileContents =~ /( (static \s+)? const \s+ value_string [^;*]+ = [^;]+ \{ [^;]+ ; )/xsg) {
+               while ($fileContents =~ /( (?: static \s+)? const \s+ value_string [^;*]+ = [^;]+ \{ [^;]+ ; )/xsg) {
                        # value_string array definition found; check if NULL terminated
                        my $vs = my $vsx = $1;
                        if ($debug_flag) {