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 bug in VariableAwareExpression that does not correctly parses expression #710

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

vietj
Copy link
Member

@vietj vietj commented Jan 15, 2025

Motivation:

VariableAwareExpression uses substring to get remaining part of String. It has a bug, it is using the length of the string in second index, instead of using last position + 1 of required substring. Without this fix, expressions like {foo}bar can not be processed.

Changes:

This patch fixes it.

Motivation:

VariableAwareExpression uses substring to get remaining part of String. It has a bug, it is using the length of the string in second index, instead of using last position + 1 of required substring. Without this fix, expressions like {foo}bar can not be processed.

Changes:

This patch fixes it.
@vietj vietj added the bug label Jan 15, 2025
@vietj vietj merged commit 9f53fc4 into 4.x Jan 15, 2025
4 checks passed
@vietj vietj added this to the 4.5.12 milestone Jan 15, 2025
@vietj vietj deleted the backport-bug-fix branch January 15, 2025 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants