Browse Source

Skipping \r (carriage return) characters for better Windows compatibility

pull/8/head
Matthew Holt 11 years ago
parent
commit
221cb02b4c
  1. 5
      jquery.parse.js

5
jquery.parse.js

@ -185,7 +185,8 @@ @@ -185,7 +185,8 @@
function appendCharToField()
{
_state.fieldVal += _state.ch;
if (_state.ch != '\r')
_state.fieldVal += _state.ch;
}
function notInQuotes()
@ -214,9 +215,7 @@ @@ -214,9 +215,7 @@
if (_config.header)
{
if (_state.lineNum == 1)
{
_state.parsed.fields.push(_state.fieldVal)
}
else
{
var currentRow = _state.parsed.rows[_state.parsed.rows.length - 1];

Loading…
Cancel
Save