if preview didn't find a row, avgFieldCount will be NaN or Infinity
@ -903,7 +903,8 @@
}
avgFieldCount /= preview.data.length;
if (preview.data.length > 0)
if ((typeof bestDelta === 'undefined' || delta < bestDelta)
&& avgFieldCount > 1.99)