Skip to content

Preserve newlines in values by quoting#29

Merged
MikeGarde merged 1 commit into
mainfrom
fix/set-new-line
Jul 12, 2026
Merged

Preserve newlines in values by quoting#29
MikeGarde merged 1 commit into
mainfrom
fix/set-new-line

Conversation

@MikeGarde

Copy link
Copy Markdown
Owner
  • Quote values containing newline in src/handlers/set_value.rs to avoid breaking env-like lines and preserve value integrity.
  • Add tests in tests/set_and_delete.rs to ensure newline content supplied via stdin is preserved and visible in multiline output.
  • Verify updating an existing key with newline content via stdin overwrites the old value and remains retrievable as multiline.

- Quote values containing newline in `src/handlers/set_value.rs` to avoid breaking env-like lines and preserve value integrity.
- Add tests in `tests/set_and_delete.rs` to ensure newline content supplied via stdin is preserved and visible in multiline output.
- Verify updating an existing key with newline content via stdin overwrites the old value and remains retrievable as multiline.
@codecov

codecov Bot commented Jul 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/handlers/set_value.rs 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MikeGarde
MikeGarde merged commit 40b7d31 into main Jul 12, 2026
2 checks passed
@MikeGarde
MikeGarde deleted the fix/set-new-line branch July 12, 2026 23:56
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.

1 participant