We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5d3fcf + e2e29de commit 779fe00Copy full SHA for 779fe00
src/io/files.js
@@ -625,9 +625,9 @@ p5.prototype.loadTable = function (path) {
625
var row;
626
for (i = 0; i < records.length; i++) {
627
//Handles row of 'undefined' at end of some CSVs
628
- if (i === records.length - 1 && records[i].length === 1) {
629
- if (records[i][0] === 'undefined') {
630
- break;
+ if (records[i].length === 1) {
+ if (records[i][0] === 'undefined' || records[i][0] === '') {
+ continue;
631
}
632
633
row = new p5.TableRow();
0 commit comments