Skip to content

Commit ede0cb0

Browse files
committed
update browser
1 parent 1f6f968 commit ede0cb0

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

dist/csvtojson.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ Converter.prototype._line = function(line) {
268268
this.emit("error", "row_exceed", this._csvLineBuffer);
269269
}
270270
if (!utils.isToogleQuote(this._csvLineBuffer, this.param.quote)) { //if a complete record is in buffer.push to result
271-
data = this._csvLineBuffer;
271+
var data = this._csvLineBuffer;
272272
this._csvLineBuffer = '';
273273
lines.push(data);
274274
} else { //if the record in buffer is not a complete record (quote does not close). wait next line
@@ -1070,6 +1070,9 @@ function rowSplit(rowStr, param) {
10701070
quoteBuff+=e;
10711071
continue;
10721072
}else{
1073+
if (len ===1){ // original column is empty quote pairs like ""
1074+
e="";
1075+
}
10731076
row.push(e);
10741077
continue;
10751078
}
@@ -10141,7 +10144,7 @@ module.exports={
1014110144
"email": "t3dodson@gmail.com"
1014210145
}
1014310146
],
10144-
"version": "0.5.6",
10147+
"version": "0.5.8",
1014510148
"keywords": [
1014610149
"csv",
1014710150
"csvtojson",
@@ -10155,12 +10158,7 @@ module.exports={
1015510158
"bin": {
1015610159
"csvtojson": "./bin/csvtojson"
1015710160
},
10158-
"license": [
10159-
{
10160-
"type": "MIT",
10161-
"url": "https://github.com/Keyang/node-csvtojson/blob/master/LICENSE"
10162-
}
10163-
],
10161+
"license": "MIT",
1016410162
"engines": {
1016510163
"node": ">=0.10"
1016610164
},

0 commit comments

Comments
 (0)