From 90df21bbb1d24a5cfb5597464024ca13bc6dedcd Mon Sep 17 00:00:00 2001 From: Felipe Zimmerle Date: Thu, 17 Sep 2015 09:29:55 -0300 Subject: [PATCH] Removes the \' from setvar before name the collections --- src/actions/set_var.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/actions/set_var.cc b/src/actions/set_var.cc index 800e2de0..02a09bf8 100644 --- a/src/actions/set_var.cc +++ b/src/actions/set_var.cc @@ -33,6 +33,11 @@ SetVar::SetVar(std::string action) bool SetVar::init(std::string *error) { size_t pos; + if (action.at(0) == '\'' && action.size() > 3) { + action.erase(0, 1); + action.pop_back(); + } + // Resolv operation operation = setToOne; pos = action.find("="); @@ -135,6 +140,8 @@ bool SetVar::evaluate(Rule *rule, Assay *assay) { break; } + assay->debug(8, "Saving variable: " + collectionName + ":" + \ + variableName + " with value: " + targetValue); assay->setCollection(collectionName, variableName, targetValue); return true;