Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pattern AST creation bug #435

Closed
chisholm opened this issue Jul 23, 2020 · 0 comments · Fixed by #436
Closed

Pattern AST creation bug #435

chisholm opened this issue Jul 23, 2020 · 0 comments · Fixed by #436
Assignees

Comments

@chisholm
Copy link
Contributor

Comparison expression ORs can get changed to ANDs:

from stix2.pattern_visitor import create_pattern_object

ast = create_pattern_object(pattern="[a:b=1 AND a:b=2 OR a:b=3]")

print(ast)

produces

[a:b = 1 AND a:b = 2 AND a:b = 3]
@rpiazza rpiazza self-assigned this Jul 24, 2020
clenk added a commit that referenced this issue Aug 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants