- // skip this if the wp_namespace is not in the proscribed list of
- // namespaces
- bool wp_namespace_found = false;
- if (!data->wp_namespace_res.empty()) {
- for (vector<pcrecpp::RE>::iterator r = data->wp_namespace_res.begin(); r != data->wp_namespace_res.end(); ++r) {
- pcrecpp::RE& wp_namespace_re = *r;
- if (wp_namespace_re.PartialMatch(data->title)) {
- wp_namespace_found = true;
+ // look to see if (a) we've passed in a list of /any/ title_regexes
+ // and (b) if all of the title_regex_matches match
+ // if (a) is true and (b) is not, we return
+ bool any_title_regex_match = false;
+ if (!data->title_regexes.empty()) {
+ for (vector<pcrecpp::RE>::iterator r = data->title_regexes.begin(); r != data->title_regexes.end(); ++r) {
+ pcrecpp::RE& title_regex = *r;
+ if (title_regex.PartialMatch(data->title)) {
+ any_title_regex_match = true;