Skip to content

Commit

Permalink
Merge pull request #17 from ovmjm/master
Browse files Browse the repository at this point in the history
Fix missed line splits
  • Loading branch information
doug-martin committed Jan 6, 2014
2 parents 4d6a6fd + d8ba48d commit 45897fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ _(Parser).extend({
if (_.isObject(from) && from instanceof Stream) {
var lines = "", parse = this._parse.bind(this), end = this.emit.bind(this, "end");
from.on("data", function streamOnData(data) {
var lineData = (lines + data).trim().split(LINE_SPLIT);
var lineData = (lines + data).split(LINE_SPLIT);
if (lineData.length > 1) {
lines = lineData.pop();
parse(lineData);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fast-csv",
"version": "0.0.2",
"version": "0.0.3",
"description": "CSV parser for node.js",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 45897fa

Please sign in to comment.