From 4dc93213e359a0410f98a66238e9cbda70d0ad35 Mon Sep 17 00:00:00 2001 From: Jeff Morriss Date: Sat, 2 Oct 2010 01:47:16 +0000 Subject: [PATCH] Don't use a regexp to compare the name to the blurb, just convert them both to lower case before doing the comparison. svn path=/trunk/; revision=34324 --- tools/checkAPIs.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/checkAPIs.pl b/tools/checkAPIs.pl index 7b65c26ebc..a723de0b71 100755 --- a/tools/checkAPIs.pl +++ b/tools/checkAPIs.pl @@ -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+/) {