`match()` and `search()` accept patterns with an unescaped `}` or `]`
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- backend-api-design
Research direction
Start by locating the match() and search() implementations and their I-Regexp pattern validation. Compare how an unescaped { is rejected with how } and ] are handled, then check the parser tests for these examples. Done means both malformed patterns produce no match, consistent with the reported jsonpath-rfc9535 behavior.
Written by the indexing model from the issue text.
Description
If the pattern given to match() or search() isn't a valid I-Regexp, the result should be "no match". An unescaped
} or ] isn't valid, but both are accepted as ordinary characters:
$[?match(@,"}|C")]on["C","}"]returns["C","}"]; it should return[].$[?match(@,"]")]on["]"]returns["]"]; it should return[].
An unescaped { is already rejected, so only } and ] get through. jsonpath-rfc9535 returns [] for these.
- Dominant language
- Go
- Stars
- 41
- Forks
- 4
- Avg merge
- 2d 8h
- Merged PRs (30d)
- 3
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from theory/jsonpath
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
Similar issues
-
area: pipeline priority: low type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
prime-radiant-inc/evener#8335 ·
Maintainers usually reply within 1 day
-
ui: OnTextKey on SearchField never sees keys (it does not reach the inner input)Possibly taken @szluyu99 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
router-for-me/CLIProxyAPI#8815 ·
Maintainers usually reply within 7 days