From 45fe8176292e3d863ea9f23cd89657c1570e11ae Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Thu, 17 Jul 2014 07:53:59 -0600 Subject: [PATCH] Using latest --- resources/js/papaparse.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/resources/js/papaparse.js b/resources/js/papaparse.js index db972a3..cac98bf 100644 --- a/resources/js/papaparse.js +++ b/resources/js/papaparse.js @@ -1,6 +1,6 @@ /* Papa Parse - v3.0.0 + v3.0.1 https://github.com/mholt/PapaParse */ (function(global) @@ -1063,7 +1063,7 @@ function quotesOnBoundary() { - return isBoundary(_i-1) || isBoundary(_i+1); + return (!_inQuotes && isBoundary(_i-1)) || isBoundary(_i+1); } function isBoundary(i) @@ -1073,12 +1073,10 @@ var ch = _input[i]; - return (i == -1 || i == _input.length) - || (i < _input.length - && i > -1 - && (ch == _delimiter - || ch == "\r" - || ch == "\n")); + return (i <= -1 || i >= _input.length) + || (ch == _delimiter + || ch == "\r" + || ch == "\n"); } function addError(type, code, msg)