Skip to content

fix(decoder): trim only U+0020 around tokens and lines - #201

Closed
johannschopplich wants to merge 5 commits into
mainfrom
triage/space-only-token-trim
Closed

johannschopplich wants to merge 5 commits into
mainfrom
triage/space-only-token-trim

Conversation

@johannschopplich

Copy link
Copy Markdown
Member

§12 trims exactly U+0020 around tokens and at line ends, but trim(), isBlank(), and stripTrailing() also drop tabs and control characters: k: v\t decoded as v, and k: "a"\t passed despite the §7.4 rule against characters after a closing quote.

@johannschopplich
johannschopplich requested a review from a team as a code owner October 2, 2026 06:30
@github-actions

github-actions Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Code Coverage

Overall Project 96.96% -0.15% 🍏
Files changed 96.42% 🍏

File Coverage
TabularArrayDecoder.java 99.3% 🍏
DecodeHelper.java 98.73% 🍏
ValueDecoder.java 97.81% 🍏
ArrayDecoder.java 96.21% 🍏
ListItemDecoder.java 95.49% -1% 🍏
KeyedObjectDecoder.java 94.1% 🍏
PrimitiveDecoder.java 94.01% 🍏
ObjectDecoder.java 90.4% -1.92% ❌
KeyDecoder.java 86.92% -0.15% 🍏

@jenspapenhagen

jenspapenhagen commented Oct 3, 2026 •

Copy link
Copy Markdown
Collaborator

Add this change in 2.0.5

thank you for the feedback

@johannschopplich
johannschopplich deleted the triage/space-only-token-trim branch October 3, 2026 17:24
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