Skip to content

Commit

Permalink
Set empty string to config.quotechar when it's value is null (#925)
Browse files Browse the repository at this point in the history
Closes #914
  • Loading branch information
chafi9-code authored Mar 14, 2022
1 parent 6bb7c33 commit 8dba33e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions papaparse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8dba33e

Please sign in to comment.