Skip to content

Quoted value at start of line doesn't parse correctly #1

Description

@rjrudin

Hey @masyukun , great library here. Ran into one issue though:

let $text := 'Test1,Test2
"1a,1a2",1b,
2a,"2b,2b2"
'
return csv:parseFile($text, true())

Returns:

"1a1a2"1b
2a"2b,2b2"

It appears that when the first value in a row has double quotes around it, the double quotes are not processed correctly, and you get two fields instead of just one.

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