Browse Source

fix: set empty string to config.quotechar when it's value is null

Closes #914
pull/925/head
chafi9-code 3 years ago
parent
commit
d56da38d2a
  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