couriers/australia_post/index.js
function valid(connote) {
  if (typeof connote != "string") {
    return false;
  }

  connote = connote.trim().toUpperCase();

  // handle 14 character couriers please
  if (connote.length === 14 && connote.indexOf("CP") === 0) {
    return false;
  }

  return [10, 14, 18, 21, 39, 40].indexOf(connote.length) != -1;
}
function valid(connote) {
  if (typeof connote != "string") {
    return false;
  }

  connote = connote.trim().toUpperCase();

  // handle 14 character couriers please
  if (connote.length === 14 && connote.indexOf("CP") === 0) {
    return false;
  }

  return [10, 14, 18, 21, 39, 40].indexOf(connote.length) != -1;
}
function valid ( connote ) { if ( typeof connote != "string" ) { return false ; } connote = connote . trim ( ) . toUpperCase ( ) ; // handle 14 character couriers please if ( connote . length === 14 && connote . indexOf ( "CP" ) === 0 ) { return false ; } return [ 10 , 14 , 18 , 21 , 39 , 40 ] . indexOf ( connote . length ) != - 1 ; }
AustraliaPost connotes are various lengths
AustraliaPost connotes are various lengths