Skip to content

Escaped Quotes at the end of a chunk are incorrectly ignored. #45

Description

@ChrisAlvares

If the last character of a chunk is a double quote and the next character at the beginning of the next chunk is also a double quote, both characters will be ignored and the output will not output any characters.

I believe this has to do with using data.charAt(i+1) and not looking at the previous field if data.charAt(i+1) is null.

Example:

test,123,"quote""d field here"

If the stream chunk ends here:

test,123,"quote""d field here"
               ^

The output value

test,123,"quoted field here

when it should read

test,123,"quote"d field here

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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