Disables @containsWord operator to enable the libpcre migration

This commit is contained in:
Felipe Zimmerle 2015-08-02 19:44:17 -03:00
parent a4cf218a3e
commit 2f4d4691c9

View File

@ -16,7 +16,6 @@
#include "operators/contains_word.h" #include "operators/contains_word.h"
#include <string> #include <string>
#include <regex>
#include "operators/operator.h" #include "operators/operator.h"
@ -42,13 +41,13 @@ bool ContainsWord::evaluate(Assay *assay,
return 1; return 1;
} }
std::regex r("\\b" + this->param + "\\b"); // std::regex r("\\b" + this->param + "\\b");
std::smatch m; // std::smatch m;
if (std::regex_search(input, m, r)) { // if (std::regex_search(input, m, r)) {
// this won't find anything because 'spoons' is not // this won't find anything because 'spoons' is not
// the word you're searching for // the word you're searching for
return 1; // return 1;
} // }
return 0; return 0;
} }