Skip to content

Conversation

@FelippeNO
Copy link

Problem

The lineRegex.firstMatch(dataLine)! statement fails when the input contains the U+2028 character (Line Separator). This issue occurs because:

  1. The input is not sanitized.
  2. The exception is not caught, so the onError callback is never invoked.

Solution

  • Sanitized the input to remove the U+2028 character before parsing.
  • Wrapped the parsing block in a try-catch to ensure errors are properly handled.

@befirst
Copy link

befirst commented Apr 22, 2025

some tests for your PR would be helpful

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