String conversion to scientific notation

Open
#84 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
backend, databases

Research direction

Use the parse(...) call in the issue as the regression case and inspect the query-string value conversion path that produces the Sequelize where clause. Add a regression test asserting the value remains the string "97E4", then run the relevant parser test suite.

Written by the indexing model from the issue text.

Description

If you try parsing the following query string, you do not obtain 97E4 but 970000.

expect(parse("page[number]=1&page[size]=1&filter=equals(value,'97E4')")).toEqual({
orm: "sequelize",
data: {
offset: 0,
limit: 1,
where: {
value: { [Op.eq]: "97E4" },
},
subQuery: false,
errors: [],
},
})

Dominant language
JavaScript
Stars
9
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

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 bitovi/querystring-parser

All issues in bitovi/querystring-parser

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.