From d56da38d2a9c4cd95090099cd8e2fbd3467e9f20 Mon Sep 17 00:00:00 2001 From: chafi9-code <ch.tacherifte@gmail.com> Date: Sat, 12 Mar 2022 18:31:25 +0100 Subject: [PATCH] fix: set empty string to config.quotechar when it's value is null 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;