prevent Booleans in CSVs

pull/89/head
jmoenig 2019-01-09 18:01:17 +01:00
rodzic 80ea5ab9ba
commit cedbce80d4
2 zmienionych plików z 2 dodań i 5 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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);
});
};