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

match and search flags #2

Closed
jg-rp opened this issue Apr 29, 2023 · 1 comment
Closed

match and search flags #2

jg-rp opened this issue Apr 29, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jg-rp
Copy link
Owner

jg-rp commented Apr 29, 2023

Add an optional flags argument to the built-in match() and search() filter functions.

This would be a deliberate deviation to the IETF JSONPath standard.

@jg-rp jg-rp added the enhancement New feature or request label Apr 29, 2023
@jg-rp
Copy link
Owner Author

jg-rp commented Jun 19, 2023

Currently, the JSONPath Compliance Test Suite tests for exactly two arguments to match() and search(). I don't particularly want to skip these tests for non-standard versions.

Rather than define optional versions of match() and search(), which accept flags and would need to be added to a custom environment explicitly, we'll suggest people use inline regex group flags.

Closing for now. Please reopen if needed.

@jg-rp jg-rp closed this as completed Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant