Skip to content
This repository was archived by the owner on Oct 14, 2020. It is now read-only.

Fix simple key usage.#5

Merged
stephenfrank merged 1 commit into
FlowCommunications:masterfrom
twistor:fix-simple-access
Jun 24, 2015
Merged

Fix simple key usage.#5
stephenfrank merged 1 commit into
FlowCommunications:masterfrom
twistor:fix-simple-access

Conversation

@twistor

@twistor twistor commented Jun 22, 2015

Copy link
Copy Markdown
Contributor

Defining the $ or . as a prefix is optional. This works in the original implementation.

Also, fixed usage of empty() where $group could be the string "0", and some other minor cleanups like moving all expression sanitizing to the lexer.

Comment thread src/Flow/JSONPath/JSONPathLexer.php Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Indention should be 4 spaces (not 1)

@twistor twistor force-pushed the fix-simple-access branch from abc08ec to 86b172d Compare June 23, 2015 19:13
@twistor twistor force-pushed the fix-simple-access branch from 86b172d to 706ded0 Compare June 23, 2015 19:22
@twistor

twistor commented Jun 23, 2015

Copy link
Copy Markdown
Contributor Author

Done.
I'm going to be recommending this as the JSONPath parser to use in one of my projects. Nice to have something that doesn't eval().

https://www.drupal.org/project/feeds_ex

stephenfrank added a commit that referenced this pull request Jun 24, 2015
Fix simple key usage (expressions are not required to start with "."). Allow expressions to start with "0". Move expression sanitizing to lexer.
@stephenfrank stephenfrank merged commit 4c71654 into FlowCommunications:master Jun 24, 2015
@stephenfrank

Copy link
Copy Markdown
Contributor

Thanks, these all look good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants