Adds support to quoted ID action

This commit is contained in:
Felipe Zimmerle
2015-07-23 14:13:52 -03:00
parent 64543e3aa2
commit 70bc15cb73
2 changed files with 5 additions and 1 deletions

View File

@@ -29,6 +29,10 @@ RuleId::RuleId(std::string action)
this->action_kind = ConfigurationKind;
std::string a = action;
a.erase(0, 3);
if (a.at(0) == '\'') {
a.erase(0, 1);
a.pop_back();
}
this->rule_id = std::stod(a);
}