Skip to content

Fix: Handle U+2028 character in dataLine parsing #38

@FelippeNO

Description

@FelippeNO

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.

Image
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions