Removes unecessary static methods from regex class

This commit is contained in:
Felipe Zimmerle
2019-01-18 18:24:26 -03:00
parent 57fc3b5084
commit 686b6ffff7
12 changed files with 15 additions and 30 deletions

View File

@@ -39,7 +39,7 @@ void CustomDebugLog::write(int level, const std::string &id,
bool CustomDebugLog::contains(const std::string& pattern) {
modsecurity::regex::Regex re(pattern);
std::string s = m_log.str();
return modsecurity::regex::regex_search(s, re);
return re.search(s);
}
std::string CustomDebugLog::log_messages() {