Skip to content

Conversation

@oliverhaas
Copy link

@oliverhaas oliverhaas commented Oct 28, 2025

Reader.load() was using .strip() which removed all whitespace including newlines that are part of multi-line Lua scripts. Now reads exact bytes and validates terminator separately.

See #434

I personally would just go with 1 test in the end, but just to see a few examples.

Reader.load() was using .strip() which removed all whitespace
including newlines that are part of multi-line Lua scripts.
Now reads exact bytes and validates terminator separately.
@oliverhaas oliverhaas requested a review from cunla as a code owner October 28, 2025 22:23
@cunla
Copy link
Owner

cunla commented Oct 29, 2025

can you fix the formatting issues?

@oliverhaas oliverhaas force-pushed the fix-tcp-server-multiline-parsing branch from 7601142 to 1bbb38b Compare October 29, 2025 21:38
@oliverhaas
Copy link
Author

Got a little confused there...

I would probably just have one test, since I don't think it's really necessary to guard against a regression here. LMK if this otherwise is fine, then I'll clean it up.

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