From 2f4d4691c9d0f0561b2cab8744c17100a7f2ef1d Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Sun, 2 Aug 2015 19:44:17 -0300 Subject: [PATCH] Disables @containsWord operator to enable the libpcre migration --- src/operators/contains_word.cc | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/operators/contains_word.cc b/src/operators/contains_word.cc index 7f386450..6c9eb296 100644 --- a/src/operators/contains_word.cc +++ b/src/operators/contains_word.cc @@ -16,7 +16,6 @@ #include "operators/contains_word.h" #include -#include #include "operators/operator.h" @@ -42,13 +41,13 @@ bool ContainsWord::evaluate(Assay *assay, return 1; } - std::regex r("\\b" + this->param + "\\b"); - std::smatch m; - if (std::regex_search(input, m, r)) { + // std::regex r("\\b" + this->param + "\\b"); + // std::smatch m; + // if (std::regex_search(input, m, r)) { // this won't find anything because 'spoons' is not // the word you're searching for - return 1; - } + // return 1; + // } return 0; }