|
|
@ -1008,7 +1008,7 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
this.parse = function(input, baseIndex, ignoreLastRow) |
|
|
|
this.parse = function(input, baseIndex, ignoreLastRow) |
|
|
|
{ |
|
|
|
{ |
|
|
|
var quoteChar = _config.quoteChar || '"'; |
|
|
|
var quoteChar = _config.quoteChar || '"'; |
|
|
|
if (!_config.newline) |
|
|
|
if (!_config.newline) |
|
|
|
_config.newline = guessLineEndings(input, quoteChar); |
|
|
|
_config.newline = guessLineEndings(input, quoteChar); |
|
|
|
|
|
|
|
|
|
|
@ -1258,7 +1258,7 @@ |
|
|
|
input = input.substr(0, 1024 * 1024); // max length 1 MB
|
|
|
|
input = input.substr(0, 1024 * 1024); // max length 1 MB
|
|
|
|
// Replace all the text inside quotes
|
|
|
|
// Replace all the text inside quotes
|
|
|
|
var re = new RegExp(quoteChar + '(.*?)' + quoteChar, 'gm'); |
|
|
|
var re = new RegExp(quoteChar + '(.*?)' + quoteChar, 'gm'); |
|
|
|
input = input.replace(re, '') |
|
|
|
input = input.replace(re, ''); |
|
|
|
|
|
|
|
|
|
|
|
var r = input.split('\r'); |
|
|
|
var r = input.split('\r'); |
|
|
|
|
|
|
|
|
|
|
|