graphql-network-inspector icon indicating copy to clipboard operation
graphql-network-inspector copied to clipboard

Searching for scientific-notation numbers does not produce hits

Open Epigene opened this issue 1 year ago • 1 comments

Describe the bug Searching for scientific notation numbers does not produce any hits, but does highlight any matches. For example, we have a response that returns 7e-7 (equivalent to 0.0000007) and this is what I see: secret_hit

Curiously, searching for the "normal form" of the number produces hits, but not highlight: hits

As far as I can tell, 7e-7 is a valid JSON number

JSON('{"i": 7e-7}')
=> {"i"=>7.0e-07}

To Reproduce Tough to say, you'll have to set up a response with scientific-notation number value(s).

Expected behavior Searching for "7e-7" etc. should produce hit(s) below the search bar like for any other search term.
Alternatively, maybe display the "normal form", aligning both UI and search-term representation.

Desktop:

  • OS: macOS 13.5.2 (22G91)
  • Chrome Version 116.0.5845.187 (Official Build) (x86_64)

Epigene avatar Sep 22 '23 13:09 Epigene

Could be something to do with regex being triggered. I'll take a look.

warrenday avatar Oct 30 '23 09:10 warrenday