Skip to content

Decode JSON string escapes in preview and print#411

Merged
antonmedv merged 1 commit into
antonmedv:masterfrom
mmoskal:mmoskal/json-string-unquote
May 8, 2026
Merged

Decode JSON string escapes in preview and print#411
antonmedv merged 1 commit into
antonmedv:masterfrom
mmoskal:mmoskal/json-string-unquote

Conversation

@mmoskal

@mmoskal mmoskal commented May 7, 2026

Copy link
Copy Markdown
Contributor

This fixes selected-string preview and print for valid JSON escapes that strconv.Unquote rejects, including surrogate pairs mixed with newlines, and adds a regression test for wrapped array string chunks.

Previously, if string had surrogate pairs, 'p' would show it with quotes.

This fixes selected-string preview and print for valid JSON escapes that strconv.Unquote rejects, including surrogate pairs mixed with newlines, and adds a regression test for wrapped array string chunks.
@antonmedv antonmedv merged commit 05f0871 into antonmedv:master May 8, 2026
3 checks passed
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.

2 participants