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

Fix operator precedence and selector list order #54

Merged
merged 1 commit into from
Mar 7, 2024
Merged

Conversation

jg-rp
Copy link
Owner

@jg-rp jg-rp commented Mar 7, 2024

Fix logical operator precedence in JSONPath filter expressions. && should bind more tightly than ||.

Fix bracketed selector list evaluation order. We now exhaust all matches for the first item before moving on to the next item.

@jg-rp jg-rp added bug Something isn't working JSONPath labels Mar 7, 2024
@jg-rp jg-rp merged commit 7665105 into main Mar 7, 2024
36 checks passed
@jg-rp jg-rp deleted the fix-precedence branch March 7, 2024 11:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working JSONPath
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant