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

InvalidPathException on last index pattern [@.length -1] #338

Closed
olajuwon99 opened this issue Mar 29, 2017 · 4 comments
Closed

InvalidPathException on last index pattern [@.length -1] #338

olajuwon99 opened this issue Mar 29, 2017 · 4 comments

Comments

@olajuwon99
Copy link

In version 2.0.0 this worked (contextSize). But for the current 2.2.0 it's a regression, In PathCompiler::readNextToken there is no support for it.

@kallestenflo
Copy link
Contributor

Could you provide a example?

@jochenberger
Copy link
Contributor

@olajuwon99 Please search for existing issues before creating new ones.

@jochenberger
Copy link
Contributor

@kallestenflo Dupe of #198

@olajuwon99
Copy link
Author

Thanks for the quick reply!

In the upcoming version, you'll be able to use negative array indexes, i.e. $.store.book[-1].title to get the last book's title.

Unfortunately I can't tell that to my customers. Will wait with the version bump until a more complete fix is available.

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

No branches or pull requests

3 participants