-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
- Like operator did not strip off quotes
- Right node of the like op should be a literal instead of an identity
@Override
public void exitExprLikeOp(LureParser.ExprLikeOpContext ctx) {
super.exitExprLikeOp(ctx);
String leftIdentifier = ctx.expr().getText();
String rightStrLiteral = ctx.TK_STRING_LITERAL().getText();
if (rightStrLiteral.length() > 2) {
rightStrLiteral = rightStrLiteral.substring(1, rightStrLiteral.length() - 1);
}
astMap.put(
ctx,
new NodeLike(
NodeIdentity.fromString(leftIdentifier),
NodeLiteral.fromString(rightStrLiteral),
null,
null,
null));
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels