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

prevent truncated subexpressions + misc code cleanup #763

Conversation

richardstartin
Copy link
Contributor

@richardstartin richardstartin commented Nov 4, 2021

This includes a fix for #693 which led to violations of the check for imbalanced parentheses introduced in #698 whenever a function has no arguments. This is the underlying cause of the test failures on master.

cc @kallestenflo @davsclaus

@@ -349,7 +350,7 @@ else if (isPathContext(c)) {
case CLOSE_PARENTHESIS:
groupParen--;
//CS304 Issue link: https://github.com/json-path/JsonPath/issues/620
if (0 > groupParen ) {
if (0 > groupParen || priorChar == '(') {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the actual fix.

@kallestenflo kallestenflo merged commit ed4d2a8 into json-path:master Nov 7, 2021
@richardstartin
Copy link
Contributor Author

Hi @kallestenflo thanks for merging this. Would it be possible to do a release soon?

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 this pull request may close these issues.

None yet

2 participants