Skip to content

Commit

Permalink
Fixed bug 14 and 15, as well as a few others
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Nov 2, 2012
1 parent f18755a commit df79574
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions src/jquery.csv.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,7 @@ RegExp.escape= function(s) {
});

// submit the last entry
if (state != 0) {
endOfLine();
}

// handle null last value
if (entry !== '') {
entry += ','
endOfLine();
}
endOfLine();

return entries;
},
Expand Down Expand Up @@ -259,10 +251,8 @@ RegExp.escape= function(s) {
return "";
});

// submit the last value of an entry
if (state != 0) {
endOfValue();
}
// submit the last value
endOfValue();

return entry;
}
Expand Down

0 comments on commit df79574

Please sign in to comment.