Comparing version 0.3.10 to 0.3.11
@@ -18,5 +18,2 @@ /** | ||
var ele = rowArr[i]; | ||
if (self.param.trim){ | ||
ele=ele.toString().trim(); | ||
} | ||
if (self._isToogleQuote(ele)) { | ||
@@ -27,2 +24,5 @@ if (inquote) { | ||
quoteBuff += ele.substr(0, ele.length - 1); | ||
if (self.param.trim){ | ||
quoteBuff=quoteBuff.toString().trim(); | ||
} | ||
row.push(quoteBuff); | ||
@@ -36,3 +36,3 @@ quoteBuff = ""; | ||
if (inquote) { | ||
quoteBuff += ele; | ||
quoteBuff += delimiter + ele; | ||
} else { | ||
@@ -42,2 +42,5 @@ if (ele.indexOf(quote) === 0 && ele[ele.length - 1] == quote) { | ||
} | ||
if (self.param.trim){ | ||
ele=ele.toString().trim(); | ||
} | ||
row.push(ele); | ||
@@ -61,2 +64,2 @@ } | ||
}); | ||
} | ||
} |
@@ -15,3 +15,3 @@ { | ||
}], | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"keywords": [ | ||
@@ -18,0 +18,0 @@ "csv", |
@@ -142,2 +142,3 @@ var CSVAdv = require("../libs/core/csvConverter.js"); | ||
assert(jsonObj[0].TIMESTAMP=='13954264""22',JSON.stringify(jsonObj[0].TIMESTAMP)); | ||
assert(jsonObj[1].TIMESTAMP=='abc, def, ccc',JSON.stringify(jsonObj[1].TIMESTAMP)); | ||
done(); | ||
@@ -144,0 +145,0 @@ }); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52155
844