Browse Source

Merge pull request #204 from andekande/patch-1

avoid division by zero
pull/220/merge
Matt Holt 10 years ago
parent
commit
33a8dfcb44
  1. 3
      papaparse.js

3
papaparse.js

@ -915,7 +915,8 @@ @@ -915,7 +915,8 @@
}
}
avgFieldCount /= preview.data.length;
if (preview.data.length > 0)
avgFieldCount /= preview.data.length;
if ((typeof bestDelta === 'undefined' || delta < bestDelta)
&& avgFieldCount > 1.99)

Loading…
Cancel
Save