Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle rows with empty cells as non-empty lines #25

Merged
merged 3 commits into from
Sep 21, 2023

Conversation

sekko27
Copy link
Contributor

@sekko27 sekko27 commented Sep 20, 2023

Pull request for #23.

You manage the emptyLine state in CSVReader, but in case of column-separator presence this property should be set to false.

Test has been also added.

reader.ts Outdated
@@ -189,6 +189,7 @@ export class CSVReader {
}

private processColumn() {
this.emptyLine = false;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to move this to line 362, right after this.debug("columnSeparator"); to keep this.emplyLine mutations within the same method.

@vslinko
Copy link
Owner

vslinko commented Sep 20, 2023

@sekko27 Hi! Thank you for your contribution!

Please fix linter issues and check my comment.

@sekko27 sekko27 requested a review from vslinko September 21, 2023 06:35
@vslinko vslinko merged commit 410f9e0 into vslinko:master Sep 21, 2023
1 check 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