- When a pattern or UUID is found, quote the literal.
This commit is contained in:
Paul Beckingham
2014-05-21 23:47:02 -04:00
parent 6a9b95079c
commit ea00f20425

View File

@@ -538,7 +538,10 @@ const std::string A3t::getFilterExpression ()
if (sequence != "")
sequence += " ";
sequence += (*b)->attribute ("raw");
if ((*b)->hasTag ("STRING"))
sequence += "'" + (*b)->attribute ("raw") + "'";
else
sequence += (*b)->attribute ("raw");
}
}
else
@@ -546,7 +549,10 @@ const std::string A3t::getFilterExpression ()
if (sequence != "")
sequence += " ";
sequence += (*i)->attribute ("raw");
if ((*i)->hasTag ("STRING"))
sequence += "'" + (*i)->attribute ("raw") + "'";
else
sequence += (*i)->attribute ("raw");
}
}
}
@@ -611,6 +617,7 @@ void A3t::findPattern ()
branch = (*i)->addBranch (new Tree ("argPat"));
branch->attribute ("raw", pattern);
branch->tag ("STRING");
}
}
}
@@ -1172,7 +1179,7 @@ void A3t::findUUIDList ()
branch->tag ("OP");
branch = (*i)->addBranch (new Tree ("argSeq"));
branch->attribute ("raw", *u);
branch->attribute ("raw", "'" + *u + "'");
}
branch = (*i)->addBranch (new Tree ("argSeq"));