From 0fc2befd6ad82ceffb4c4bcf190bf96a99f5cf53 Mon Sep 17 00:00:00 2001 From: Rich Piazza Date: Sat, 25 Jul 2020 14:22:03 -0400 Subject: [PATCH] hack for issue_435 --- stix2/pattern_visitor.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stix2/pattern_visitor.py b/stix2/pattern_visitor.py index c4deb64..10f70bb 100644 --- a/stix2/pattern_visitor.py +++ b/stix2/pattern_visitor.py @@ -259,6 +259,9 @@ class STIXPatternVisitorForSTIX2(): if isinstance(next, TerminalNode): property_path.append(self.instantiate("ListObjectPathComponent", current.property_name, next.getText())) i += 2 + if isinstance(next, IntegerConstant): + property_path.append(self.instantiate("ListObjectPathComponent", current.property_name, next.value)) + i += 2 else: property_path.append(current) i += 1