Browse Source

Guessing delimiters is 5x more efficient; fixes #14

pull/17/head 1.1.1
Matthew Holt 11 years ago
parent
commit
e88cff221e
  1. 4
      jquery.parse.js
  2. 4
      jquery.parse.min.js
  3. 2
      parse.jquery.json

4
jquery.parse.js

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
/*
jQuery Parse Plugin
v1.1.0
v1.1.1
https://github.com/mholt/jquery.parse
*/
@ -146,7 +146,7 @@ @@ -146,7 +146,7 @@
for (_state.i = 0; _state.i < _input.length; _state.i++)
{
if (_config.preview > 0 && _state.row >= _config.preview)
if (_config.preview > 0 && _state.lineNum > _config.preview)
break;
_state.ch = _input[_state.i];

4
jquery.parse.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": "1.1.0",
"version": "1.1.1",
"title": "jQuery Parse",
"description": "Efficiently parses CSV (character-separated / delimited text) files or strings into arrays and objects. Auto-detects delimiters. Gracefully handles errors. Supports parsing multiple files.",
"keywords": [

Loading…
Cancel
Save