Skip to content
Snippets Groups Projects
Commit c5723f79 authored by Philip Makedonski's avatar Philip Makedonski
Browse files

+ fix for scope resolution

parent 3c9aa992
No related branches found
No related tags found
No related merge requests found
...@@ -200,8 +200,8 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider { ...@@ -200,8 +200,8 @@ public class TDLScopeProvider extends AbstractDeclarativeScopeProvider {
EList<Target> targets = ((Message) context).getTarget(); EList<Target> targets = ((Message) context).getTarget();
if (!targets.isEmpty()) { if (!targets.isEmpty()) {
ICompositeNode oppositeNode = NodeModelUtils.findActualNodeFor(targets.get(0)); ICompositeNode oppositeNode = NodeModelUtils.findActualNodeFor(targets.get(0));
String text = NodeModelUtils.getTokenText(oppositeNode);
if (oppositeNode != null) { if (oppositeNode != null) {
String text = NodeModelUtils.getTokenText(oppositeNode);
String targetGateName = text String targetGateName = text
.replaceAll("(the|a|an)\\s+", "") .replaceAll("(the|a|an)\\s+", "")
.replaceAll("(?s)where\\s+it\\s+is.+", "") .replaceAll("(?s)where\\s+it\\s+is.+", "")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment