-
Notifications
You must be signed in to change notification settings - Fork 7
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
Projected string slices are shortcut #69
Comments
springcomp
added a commit
that referenced
this issue
Jun 21, 2023
Signed-off-by: Springcomp <springcomp@users.noreply.github.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See jmespath.test#32
Currently, string slices are implemented using the projection mechanism.
However, the second hand of the projection is not evaluated when slicing a string.
As a result, the following expression does not evaluate correctly:
'foo'[::-1].length(@)
->"oof"
❌Instead, it should yield the following result:
'foo'[::-1].length(@)
->3
✅The text was updated successfully, but these errors were encountered: