Repository navigation
fix(csv): quote fields containing lone carriage returns - #758
Conversation
There was a problem hiding this comment.
Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.
In the meantime, two things that make review faster:
- A short description of why the change matters, not just what it does — most of our PRs link a
Fixes #...to the issue that explains the why. - A quick local test note if there's anything worth eyeballing in the browser.
If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.
gkhngyk
left a comment
There was a problem hiding this comment.
Thanks — this is exactly the fix.
Verified the character class change does what the issue asked: line1\rline2 now quotes where it previously went out raw, and CRLF, LF, comma, quote and plain values are all unchanged. The lone-CR test fails on the old regex and passes on the new one, so the coverage is real.
Scope is right too — the formula-injection case stays untouched.
CI green across the board.
Summary
Related issue
Closes #757
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsTesting
yarn test— 16 files, 90 tests passedyarn typecheckyarn lint— 0 errors (8 pre-existing warnings)yarn format:check— passed in a clean LF checkout matching CIyarn buildgit diff --checkChecklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)