Skip to content

Tab as delimiter breaks parsing #144

Description

@OscarGodson

Delimiter with tab erroring out

We require tab delimiting as an option for our CSVs for users. Certain programs use tabs. However, using tabs results in an error like this:

$.csv.toArray('"Foo"    "Bar"', {separator: '\t'})

Uncaught Error: CSVDataError: Illegal State [Row:1][Col:1]

Environment

  • Platform: Browser
  • Version: Edge 86.0.622.38
  • Usage: I'm typing it like above

Steps to reproduce

  • Run $.csv.toArray('"Foo" "Bar"', {separator: '\t'})

Expected behaviour

It should produce ['Foo', 'Bar']

Actual behaviour

Uncaught Error: CSVDataError: Illegal State [Row:1][Col:1]

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