From 221cb02b4c30c81c77f3bd2745425d12913939a8 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 7 Dec 2013 16:00:08 -0700 Subject: [PATCH] Skipping \r (carriage return) characters for better Windows compatibility --- jquery.parse.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/jquery.parse.js b/jquery.parse.js index 085c6f5..393de9e 100644 --- a/jquery.parse.js +++ b/jquery.parse.js @@ -185,7 +185,8 @@ function appendCharToField() { - _state.fieldVal += _state.ch; + if (_state.ch != '\r') + _state.fieldVal += _state.ch; } function notInQuotes() @@ -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];