From 8dba33e0c546f73ae8bdfb55d3dfd2695765a024 Mon Sep 17 00:00:00 2001 From: chafi9-code <63321019+chafi9-code@users.noreply.github.com> Date: Mon, 14 Mar 2022 12:24:49 +0100 Subject: [PATCH] Set empty string to config.quotechar when it's value is null (#925) Closes #914 --- papaparse.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/papaparse.js b/papaparse.js index 91de82f..df7ba06 100755 --- a/papaparse.js +++ b/papaparse.js @@ -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;