-
Notifications
You must be signed in to change notification settings - Fork 11
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
Query parser should ignore leading and trailing whitespace #166
Labels
area: app
Improvements in overall CLI app usability
good first issue
Good for newcomers
help wanted
External contributions welcome
type: feature
New feature or request
Milestone
Comments
Tagging @V0ldek for notifications |
github-actions
bot
added
acceptance: go ahead
Reviewed, implementation can start
and removed
acceptance: triage
Waiting for owner's input
labels
Jun 25, 2023
V0ldek
added
help wanted
External contributions welcome
good first issue
Good for newcomers
mod: parser
area: app
Improvements in overall CLI app usability
labels
Jun 25, 2023
V0ldek
added a commit
that referenced
this issue
Jan 8, 2024
- `rsonpath-syntax` disallows leading and trailing whitespace by default, but can relax this with parser options; - main parser used in `rq` now ignores leading and trailing query whitespace Ref: #166
V0ldek
added a commit
that referenced
this issue
Jan 9, 2024
- `rsonpath-syntax` disallows leading and trailing whitespace by default, but can relax this with parser options; - main parser used in `rq` now ignores leading and trailing query whitespace Ref: #166
V0ldek
added a commit
that referenced
this issue
Jan 9, 2024
- `rsonpath-syntax` disallows leading and trailing whitespace by default, but can relax this with parser options; - main parser used in `rq` now ignores leading and trailing query whitespace Ref: #166
V0ldek
added a commit
that referenced
this issue
Jan 9, 2024
- `rsonpath-syntax` disallows leading and trailing whitespace by default, but can relax this with parser options; - main parser used in `rq` now ignores leading and trailing query whitespace Ref: #166
3 tasks
V0ldek
added a commit
that referenced
this issue
Jan 10, 2024
- `rsonpath-syntax` disallows leading and trailing whitespace by default, but can relax this with parser options; - main parser used in `rq` now ignores leading and trailing query whitespace Ref: #166
github-project-automation
bot
moved this from Todo
to Merged
in Active rsonpath development
Jan 10, 2024
github-actions
bot
removed
the
acceptance: go ahead
Reviewed, implementation can start
label
Jan 10, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
area: app
Improvements in overall CLI app usability
good first issue
Good for newcomers
help wanted
External contributions welcome
type: feature
New feature or request
Is your feature request related to a problem? Please describe.
Parsing a JSONPath query with leading or trailing whitespace causes a parsing error.
This is definitely not what we want for the CLI. As to the library, I'm not sure.
Describe the solution you'd like
The CLI should accept queries with leading or trailing whitespace by simply trimming them.
The library should be investigated – check how existing crates with query parsing treat it (
regex
) and see what's considered idiomatic.Additional context
rq -c ' $..a '
should work.The text was updated successfully, but these errors were encountered: