Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tab as delimiter breaks parsing #144

Open
OscarGodson opened this issue Oct 10, 2020 · 1 comment
Open

Tab as delimiter breaks parsing #144

OscarGodson opened this issue Oct 10, 2020 · 1 comment

Comments

@OscarGodson
Copy link

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]

@vanagnostos
Copy link

@OscarGodson have you tried "\t" instead of '\t'?

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

No branches or pull requests

2 participants