Skip to content

🐛 fix(mq-lang): escape embedded double-quotes in csv_stringify - #1892

Merged
harehare merged 1 commit into
mainfrom
fix/csv-stringify-quote-escaping
Jun 17, 2026
Merged

harehare merged 1 commit into
mainfrom
fix/csv-stringify-quote-escaping

Conversation

@harehare

Copy link
Copy Markdown
Owner

Quoted CSV fields and header cells containing " were wrapped in quotes without doubling the embedded quote per RFC 4180, producing invalid CSV. Also add coverage for plain, multi-quote, header, and round-trip cases.

Close #1868

Quoted CSV fields and header cells containing `"` were wrapped in
quotes without doubling the embedded quote per RFC 4180, producing
invalid CSV. Also add coverage for plain, multi-quote, header, and
round-trip cases.

Close #1868
@codspeed

codspeed Bot commented Jun 17, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 17.93%

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

❌ 1 regressed benchmark
✅ 30 untouched benchmarks

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Benchmark BASE HEAD Efficiency
❌ eval_macro_expansion_simple 85.4 µs 104.1 µs -17.93%

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing fix/csv-stringify-quote-escaping (5241c6a) with main (149a697)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (363f627) during the generation of this report, so 149a697 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@harehare
harehare merged commit 452665f into main Jun 17, 2026
10 of 11 checks passed
@harehare
harehare deleted the fix/csv-stringify-quote-escaping branch June 17, 2026 14:19
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
mq 0.6.2

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed

###  ✨ New Features

- Allow pipeline expressions as function arguments by @VrtxOmega in harehare/mq#1865
- ✨ feat(playground): add drag-and-drop file import to editors by @harehare in harehare/mq#1885
- ✨ feat(mq-web): expose clearHttpCache and clearAllHttpCache APIs by @harehare in harehare/mq#1890
- ✨ feat(mq-ffi): expose engine module/config APIs and mq_version by @harehare in harehare/mq#1893
- ✨ feat(mq-repl): add /save command test and fix missing match arm by @harehare in harehare/mq#1896
- ✨ feat(mq-lsp): add code actions and rename support by @harehare in harehare/mq#1900
- ✨ feat(mq-run): add shell completion subcommand  by @harehare in harehare/mq#1902
- ✨ feat(mq-lang): add set_children builtin function by @harehare in harehare/mq#1907
- ✨ feat(mq-lang): add md module for building markdown from scratch by @harehare in harehare/mq#1906
- ✨ feat(mq-lang): make md::doc accept variadic arguments by @harehare in harehare/mq#1909
- feat: add --exit-status / -e flag (exit code 1 for false/null/empty output) by @sridhar-3009 in harehare/mq#1823
- ✨ feat(mq-nodejs): add hover and HTTP cache control APIs by @harehare in harehare/mq#1910

###  🐛  Bug Fixes

- 🐛 fix(cst): support pipeline expressions as function arguments by @harehare in harehare/mq#1866
- 💄 fix(playground): replace alert() with showToast() for error messages by @harehare in harehare/mq#1877
- fix(mq-lang): handle "v"/"V" prefix in semver_parse by @aodihis in harehare/mq#1887
- 🐛 fix(mq-lang): escape embedded double-quotes in csv_stringify by @harehare in harehare/mq#1892
- 🐛 fix(mq-lang): block SSRF/DNS-rebinding in http-import resolver by @harehare in harehare/mq#1901
- 🐛 fix(mq-check): preserve generic arm type when union with concrete None arm by @harehare in harehare/mq#1904
- 🐛 fix(mq-formatter): fix indentation of wrapped def/fn params when inline by @harehare in harehare/mq#1908
- 🐛 fix(mq-wasm): gate OPFS-only helpers behind opfs feature by @harehare in harehare/mq#1911

### ♻ Refactor

- ♻ refactor(http-import): make HTTP fetcher pluggable via HttpFetcher trait by @harehare in harehare/mq#1886

###  📦 Build / Dependencies

- build(deps): bump the dependencies group with 2 updates by @dependabot[bot] in harehare/mq#1882
- build(deps): bump which from 8.0.2 to 8.0.3 in the dependencies group by @dependabot[bot] in harehare/mq#1881
- build(deps-dev): bump the dependencies group in /editors/vscode with 4 updates by @dependabot[bot] in harehare/mq#1878
- build(deps-dev): bump oxlint from 1.68.0 to 1.69.0 in /packages/mq-web in the dependencies group by @dependabot[bot] in harehare/mq#1879
- build(deps-dev): bump the dependencies group in /packages/mq-playground with 2 updates by @dependabot[bot] in harehare/mq#1880
- build(deps-dev): bump js-yaml from 4.1.1 to 4.2.0 in /editors/vscode by @dependabot[bot] in harehare/mq#1883
- build(deps): bump cbindgen from 0.29.3 to 0.29.4 in the dependencies group by @dependabot[bot] in harehare/mq#1888
- 📦 build(nix): update flake.lock to latest nixpkgs and rust-overlay by @harehare in harehare/mq#1889
- build(deps): bump taiki-e/install-action from 2.81.8 to 2.81.9 in the dependencies group by @dependabot[bot] in harehare/mq#1894
- build(deps-dev): bump @types/node from 25.9.2 to 25.9.3 in /editors/vscode in the dependencies group by @dependabot[bot] in harehare/mq#1898
- build(deps): bump the dependencies group with 2 updates by @dependabot[bot] in harehare/mq#1899
- build(deps): bump smallvec from 1.15.1 to 1.15.2 in the dependencies group by @dependabot[bot] in harehare/mq#1903

## New Contributors

* @VrtxOmega made their first contribution in harehare/mq#1865
* @aodihis made their first contribution in harehare/mq#1887
* @sridhar-3009 made their first contribution in harehare/mq#1823

**Full Changelog**: harehare/mq@v0.6.1...v0.6.2
</pre>
  <p>View the full release notes at <a href="https://github.com/harehare/mq/releases/tag/v0.6.2">https://github.com/harehare/mq/releases/tag/v0.6.2</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!12066
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

csv_stringify produces invalid CSV when fields contain double-quotes

1 participant