mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2026-01-01 14:15:46 +03:00
Moving regex from utils to its own namespace
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include <string>
|
||||
|
||||
#include "modsecurity/debug_log.h"
|
||||
#include "src/utils/regex.h"
|
||||
#include "src/regex/regex.h"
|
||||
|
||||
namespace modsecurity_test {
|
||||
|
||||
@@ -37,9 +37,9 @@ void CustomDebugLog::write(int level, const std::string &id,
|
||||
}
|
||||
|
||||
bool CustomDebugLog::contains(const std::string& pattern) {
|
||||
modsecurity::Utils::Regex re(pattern);
|
||||
modsecurity::regex::Regex re(pattern);
|
||||
std::string s = m_log.str();
|
||||
return modsecurity::Utils::regex_search(s, re);
|
||||
return modsecurity::regex::regex_search(s, re);
|
||||
}
|
||||
|
||||
std::string CustomDebugLog::log_messages() {
|
||||
|
||||
Reference in New Issue
Block a user