Browse Source

Set empty string to config.quotechar when it's value is null (#925)

Closes #914
pull/912/head
chafi9-code 3 years ago committed by GitHub
parent
commit
8dba33e0c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      papaparse.js

3
papaparse.js

@ -1403,8 +1403,7 @@ License: MIT @@ -1403,8 +1403,7 @@ License: MIT
var preview = config.preview;
var fastMode = config.fastMode;
var quoteChar;
/** Allows for no quoteChar by setting quoteChar to undefined in config */
if (config.quoteChar === undefined) {
if (config.quoteChar === undefined || config.quoteChar === null) {
quoteChar = '"';
} else {
quoteChar = config.quoteChar;

Loading…
Cancel
Save