From 5ef28d5a05b33a87e7bcc63f2bfaf3b68d0dd1c4 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Thu, 10 Feb 2011 19:09:25 -0800 Subject: [PATCH] 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. --- buildrun.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 \"" -- 2.43.5