From: Josh Stone Date: Fri, 11 Feb 2011 03:09:25 +0000 (-0800) Subject: Allow capitals in @cast headers X-Git-Tag: release-1.5~246 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=5ef28d5a05b33a87e7bcc63f2bfaf3b68d0dd1c4;p=systemtap.git Allow capitals in @cast headers The conversion to regexp_match lost the REG_ICASE, so we need to manually allow capitals in the regular expression. * buildrun.cxx (make_typequery): Add A-Z to the character class. --- diff --git a/buildrun.cxx b/buildrun.cxx index e07feeb98..dae78b05f 100644 --- a/buildrun.cxx +++ b/buildrun.cxx @@ -689,7 +689,7 @@ make_typequery(systemtap_session& s, string& module) return -1; string header = module.substr(i, end - i); vector matches; - if (regexp_match(header, "^[a-z0-9/_.+-]+$", matches)) + if (regexp_match(header, "^[a-zA-Z0-9/_.+-]+$", matches)) { if (! s.suppress_warnings) cerr << "Warning: skipping malformed @cast header \""