Fix the regression test regexp validation

This commit is contained in:
Felipe Zimmerle 2015-09-24 12:33:37 -07:00
parent f93c0de940
commit 2c39f83b5f

View File

@ -37,8 +37,7 @@ bool CustomDebugLog::contains(const std::string& pattern) {
ModSecurity::Utils::Regex re(pattern);
ModSecurity::Utils::SMatch match;
std::string s = m_log.str();
return (ModSecurity::Utils::regex_search(s, &match, re)
&& match.size() >= 1);
return ModSecurity::Utils::regex_search(s, re);
}
std::string CustomDebugLog::log_messages() {