kopia lustrzana https://github.com/backface/turtlestitch
prevent Booleans in CSVs
rodzic
80ea5ab9ba
commit
cedbce80d4
|
@ -9,6 +9,7 @@
|
|||
* Lists, Threads, Objects: added (Bernat's) JSON parser to SPLIT block
|
||||
* Lists, Objects: added "export as JSON" capability
|
||||
* Lists, Objects: automatically parse json files on import
|
||||
* Lists: prevent Booleans in CSVs
|
||||
|
||||
### 2019-01-08
|
||||
* Objects: automatically parse csv files on import, experimental "raw data" and "parse" ops
|
||||
|
|
|
@ -539,8 +539,6 @@ List.prototype.canBeCSV = function () {
|
|||
return this.itemsArray().every(function (value) {
|
||||
return !isNaN(+value) ||
|
||||
isString(value) ||
|
||||
value === true ||
|
||||
value === false ||
|
||||
(value instanceof List && value.hasOnlyAtomicData());
|
||||
});
|
||||
};
|
||||
|
@ -558,9 +556,7 @@ List.prototype.canBeJSON = function () {
|
|||
List.prototype.hasOnlyAtomicData = function () {
|
||||
return this.itemsArray().every(function (value) {
|
||||
return !isNaN(+value) ||
|
||||
isString(value) ||
|
||||
value === true ||
|
||||
value === false;
|
||||
isString(value);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue