index.js
function getJSONId(data) {
  var lines = data.split('\n');
  for (var i = 0; i < lines.length; i++) {
    if (lines[i].indexOf('T:') > -1) {
      return lines[i].substr(lines[i].indexOf(':') + 1, lines[i].length);
    }
  }
  throw new Error('Could not determine "T:" field');
}
function getJSONId(data) {
  var lines = data.split('\n');
  for (var i = 0; i < lines.length; i++) {
    if (lines[i].indexOf('T:') > -1) {
      return lines[i].substr(lines[i].indexOf(':') + 1, lines[i].length);
    }
  }
  throw new Error('Could not determine "T:" field');
}
function getJSONId ( data ) { var lines = data . split ( '\n' ) ; for ( var i = 0 ; i < lines . length ; i ++ ) { if ( lines [ i ] . indexOf ( 'T:' ) > - 1 ) { return lines [ i ] . substr ( lines [ i ] . indexOf ( ':' ) + 1 , lines [ i ] . length ) ; } } throw new Error ( 'Could not determine "T:" field' ) ; }
Get id from abc string
@param {String} data - The abc string
@returns {string}
Get id from abc string