Browse Source

Fix #115

pull/124/head 4.0.5
Matthew Holt 10 years ago
parent
commit
2afb936a7d
  1. 2
      bower.json
  2. 2
      package.json
  3. 3
      papaparse.js
  4. 4
      papaparse.min.js
  5. 2
      parse.jquery.json
  6. 8
      tests/test-cases.js

2
bower.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "Papa-Parse",
"version": "4.0.4",
"version": "4.0.5",
"main": "papaparse.js",
"homepage": "http://papaparse.com",
"authors": [

2
package.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "papaparse",
"version": "4.0.4",
"version": "4.0.5",
"description": "Fast and powerful CSV parser for the browser that supports web workers and streaming large files. Converts CSV to JSON and JSON to CSV.",
"keywords": [
"csv",

3
papaparse.js

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/*
Papa Parse
v4.0.4
v4.0.5
https://github.com/mholt/PapaParse
*/
(function(global)
@ -1198,6 +1198,7 @@ @@ -1198,6 +1198,7 @@
// Closing quote followed by newline
row.push(input.substring(cursor, quoteSearch).replace(/""/g, '"'));
saveRow(quoteSearch + 1 + newlineLen);
nextDelim = input.indexOf(delim, cursor); // because we may have skipped the nextDelim in the quoted field
if (stepIsFunction)
{

4
papaparse.min.js vendored

File diff suppressed because one or more lines are too long

2
parse.jquery.json

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
{
"name": "parse",
"version": "4.0.4",
"version": "4.0.5",
"title": "Papa Parse",
"description": "Powerful CSV parser that converts CSV to JSON and JSON to CSV. Supports web workers and streaming large files. Fastest CSV parser for JavaScript.",
"keywords": [

8
tests/test-cases.js

@ -76,6 +76,14 @@ var CORE_PARSER_TESTS = [ @@ -76,6 +76,14 @@ var CORE_PARSER_TESTS = [
errors: []
}
},
{
description: "Quoted fields at end of row with delimiter and line break",
input: 'a,b,"c,c\nc"\nd,e,f',
expected: {
data: [['a', 'b', 'c,c\nc'], ['d', 'e', 'f']],
errors: []
}
},
{
description: "Quoted field with escaped quotes",
input: 'A,"B""B""B",C',

Loading…
Cancel
Save