Using pcre (with JIT) instead of pcrecpp

This commit is contained in:
Felipe Zimmerle
2015-09-17 19:26:44 -03:00
parent ed86c24df6
commit 2451bf05d7
4 changed files with 25 additions and 18 deletions

View File

@@ -29,8 +29,7 @@ namespace operators {
bool Rx::evaluate(Assay *assay, const std::string& input) {
SMatch match;
Regex re(MacroExpansion::expand(param, assay));
if (regex_search(input, &match, re) && match.size() >= 1) {
if (regex_search(input, &match, *m_re) && match.size() >= 1) {
this->matched.push_back(match.match);
return true;
}