Adds support for @fuzzyHash

Issue #997
This commit is contained in:
Felipe Zimmerle
2017-10-25 19:11:09 -03:00
parent 4ecfed3163
commit 7622866f97
20 changed files with 1234 additions and 719 deletions

View File

@@ -910,8 +910,12 @@ op_before_init:
}
| OPERATOR_FUZZY_HASH FREE_TEXT
{
/* $$ = new operators::FuzzyHash(); */
OPERATOR_NOT_SUPPORTED("FuzzyHash", @0);
OPERATOR_CONTAINER($$, new operators::FuzzyHash(utils::string::removeBracketsIfNeeded($2)));
std::string error;
if ($$->init(driver.ref.back(), &error) == false) {
driver.error(@0, error);
YYERROR;
}
}
| OPERATOR_VALIDATE_BYTE_RANGE FREE_TEXT
{