Don't use a regexp to compare the name to the blurb, just convert them both to lower...
authorJeff Morriss <jeff.morriss@ulticom.com>
Sat, 2 Oct 2010 01:47:16 +0000 (01:47 -0000)
committerJeff Morriss <jeff.morriss@ulticom.com>
Sat, 2 Oct 2010 01:47:16 +0000 (01:47 -0000)
svn path=/trunk/; revision=34324

tools/checkAPIs.pl

index 7b65c26ebc252627d0882c4c312d0a9ccdec1a88..a723de0b71f04143d2a2911ea74448029ba25850 100755 (executable)
@@ -992,7 +992,7 @@ sub check_hf_entries($$)
                if ($name eq $abbrev) {
                        print STDERR "Warning: the abbreviation for field $name matches the field name in $filename\n";
                }
-               if ($name =~ m/$blurb/i) {
+               if (lc($name) eq lc($blurb)) {
                        print STDERR "Warning: the blurb for field $name ($abbrev) matches the field name in $filename\n";
                }
                if ($name =~ m/"\s+/) {