Skip to content

Quote date fields containing the DSV delimiter - #115

Open
cangen185-sudo wants to merge 1 commit into
d3:mainfrom
cangen185-sudo:fix/quote-date-fields
Open

cangen185-sudo wants to merge 1 commit into
d3:mainfrom
cangen185-sudo:fix/quote-date-fields

Conversation

@cangen185-sudo

Copy link
Copy Markdown

With dsvFormat(":"), formatting a row containing a Date produced an unquoted timestamp. Parsing that row again treated the colons in the time as field separators and changed the number of columns.

Format the date first, then pass its text through the same delimiter-aware quoting step as other field values. The regression checks the round trip. All 137 tests passed locally with the repository's expected timezone, and ESLint passed on the changed files. Prepared and tested with Codex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant