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

Projected string slices are shortcut #69

Open
springcomp opened this issue May 1, 2023 · 0 comments · May be fixed by #76
Open

Projected string slices are shortcut #69

springcomp opened this issue May 1, 2023 · 0 comments · May be fixed by #76

Comments

@springcomp
Copy link
Contributor

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
springcomp added a commit that referenced this issue Jun 21, 2023
Signed-off-by: Springcomp <springcomp@users.noreply.github.com>
@springcomp springcomp linked a pull request Jun 21, 2023 that will close this issue
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.

1 participant