Skip to content

fix: remove greedy removal of whitespace#78

Open
tkreis wants to merge 1 commit intobinaryminds:masterfrom
tkreis:fix-greedy-whitespace-removal
Open

fix: remove greedy removal of whitespace#78
tkreis wants to merge 1 commit intobinaryminds:masterfrom
tkreis:fix-greedy-whitespace-removal

Conversation

@tkreis
Copy link

@tkreis tkreis commented Jul 25, 2025

I think the current implementation is too greedy and removes whitespace which it shouldn't.

the space states it should only remove U+0020 not all whitespace 

https://html.spec.whatwg.org/multipage/server-sent-events.html#parsing-an-event-stream

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