examples/ny-campaign-finance.conf.js
function checkFieldLength(parsed, field, length) {
  length = length || transactionFields[field].options.length;
  if (parsed.transactions[field] && parsed.transactions[field].toString().length > length) {
    console.log(parsed.transactions);
    console.log(field, parsed.transactions[field]);
  }
}
function checkFieldLength(parsed, field, length) {
  length = length || transactionFields[field].options.length;
  if (parsed.transactions[field] && parsed.transactions[field].toString().length > length) {
    console.log(parsed.transactions);
    console.log(field, parsed.transactions[field]);
  }
}
function checkFieldLength ( parsed , field , length ) { length = length || transactionFields [ field ] . options . length ; if ( parsed . transactions [ field ] && parsed . transactions [ field ] . toString ( ) . length > length ) { console . log ( parsed . transactions ) ; console . log ( field , parsed . transactions [ field ] ) ; } }
Just a helpful function to help find some issues.
Just a helpful function to help find some issues .