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

feat: Added greedy option for skipEmptyLines to handle blank lines an… #932

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

thisismayuresh
Copy link
Collaborator

@thisismayuresh thisismayuresh commented Jan 31, 2025

Description:
The skipEmptyLines option in Papa Parse was previously set to true, which only skips fully blank lines. However, lines containing just commas (e.g., ,,,,, ,,,,,) were not being handled correctly and would still be parsed as valid, non-empty lines, causing issues in CSV parsing and was causing empty records.

Changes Made:
Added the 'greedy' option to the skipEmptyLines configuration.
This update ensures that both blank lines and lines containing only commas (e.g., ,,,,, ,,,,,) are treated as empty and skipped during parsing, improving how CSV files are handled.

Copy link

nx-cloud bot commented Jan 31, 2025

View your CI Pipeline Execution ↗ for commit 38bd803.

Command Status Duration Result
nx run-many --target=build --all ✅ Succeeded 16s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-31 06:12:21 UTC

Copy link

nx-cloud bot commented Jan 31, 2025

View your CI Pipeline Execution ↗ for commit 38bd803.

Command Status Duration Result
nx run-many --target=build --all ✅ Succeeded 16s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-31 06:12:22 UTC

@thisismayuresh thisismayuresh linked an issue Jan 31, 2025 that may be closed by this pull request
@chavda-bhavik chavda-bhavik merged commit c80fc6b into next Jan 31, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CSV file with empty cells is getting parsed
2 participants