diff --git a/HISTORY.md b/HISTORY.md index 6ee62c60..481196aa 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -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 diff --git a/src/lists.js b/src/lists.js index 8f701e32..4c58206e 100644 --- a/src/lists.js +++ b/src/lists.js @@ -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); }); };