From f00137a5ac5e84e7f55e35e6303b39aa0f48ca7c Mon Sep 17 00:00:00 2001 From: Adi Roiban Date: Fri, 8 Jun 2018 18:50:36 +0100 Subject: [PATCH] Rewrite to make phantom happy. --- papaparse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/papaparse.js b/papaparse.js index 193af60..0bf25bd 100755 --- a/papaparse.js +++ b/papaparse.js @@ -326,7 +326,7 @@ return; if (typeof _config.delimiter === 'string' - && !Papa.BAD_DELIMITERS.filter(function(value) { return _config.delimiter.includes(value); }).length) + && !Papa.BAD_DELIMITERS.filter(function(value) { return _config.delimiter.indexOf(value) !== -1; }).length) { // We have a string as config and it does not contains any // of the invalid delimiters.