Skip to content

Commit

Permalink
Bug fix: handle empty CSV rows
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-frank committed Nov 10, 2017
1 parent b498fcd commit ace7069
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/funcs.trio
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,10 @@ src:

// Filter null and empty string input
row = row.findAll() v => (v != null and v != "")


// Handle empty rows
if (row.isEmpty) return null

// Parse tags
row.each() (v,n) => do
// Check for template
Expand Down

0 comments on commit ace7069

Please sign in to comment.