Improves the secrules parser

This commit is contained in:
Felipe Zimmerle
2016-01-11 17:14:02 -03:00
parent ed13cab9f4
commit 3acc013e49
4 changed files with 60 additions and 8 deletions

View File

@@ -30,8 +30,10 @@ namespace actions {
Rev::Rev(std::string action)
: Action(action, ConfigurationKind),
m_rev(action) {
m_rev.erase(0, 1);
m_rev.pop_back();
if (m_rev.at(0) == '\'') {
m_rev.erase(0, 1);
m_rev.pop_back();
}
}