`escape_formulas` does not work with negative numbers
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 4.3k
- Forks
- 299
- Avg merge
- 16h 19m
- Merged PRs (30d)
- 1
Description
Describe the bug
When using escape_formulas no consideration is made for negative numbers and this breaks the value when opened in excel e.g.
To Reproduce
Simply set escape_formulas: true then write the value -1.0
Contributor guide
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.
Research direction
The issue names no files or tests. Start by locating the implementation of the escape_formulas option, reproduce the -1.0 case, and inspect the existing test structure. Done means negative numeric values remain valid when the generated CSV is opened in Excel with escape_formulas: true.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- data
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100