A number with an upper-case `E` exponent is rejected in a filter

Open Beginner friendly
#42 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
73/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
go
Domain
backend

Research direction

Start by locating the number lexer or parser used for filter expressions and read how it handles exponent notation. Compare its handling of e and E using the failing expression $[?@ == 0E1]; done means both exponent forms parse and return [0] for the input [0].

Written by the indexing model from the issue text.

Description

$[?@ == 0e1] on [0] works and returns [0]. The same thing with an upper-case exponent, $[?@ == 0E1], is a
parse error ("unexpected identifier at position 10"). The RFC allows both e and E in a number, so 0E1 should be
accepted and also return [0].

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from theory/jsonpath

All issues in theory/jsonpath

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.