Skip to content

Fix skipExistingHeaders on long files without headers yet#1

Merged
marchermans merged 1 commit into
masterfrom
fix-long-files-skip-existing
Oct 20, 2023
Merged

Fix skipExistingHeaders on long files without headers yet#1
marchermans merged 1 commit into
masterfrom
fix-long-files-skip-existing

Conversation

@Technici4n
Copy link
Copy Markdown
Member

The problem is that in PreparedCommentHeader there is a reader.mark(2048) call but the contentStartsWithValidHeaderFormat check can use a lot more than 2048 since it scans the entire file. Prevent this by stopping the scan once contentLinesMatch is false.

Upstream PR: CadixDev#41.

@sciwhiz12 sciwhiz12 added the bug Something isn't working label Oct 20, 2023
@marchermans marchermans merged commit 016608c into master Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants