bin/play.js
function getStart (str) {
  var ret = null
  var match = /[0-9]+,[0-9]+,.*/.test(str)
  if (!match) {
    return null
  }
  var a = str.split(',')
  if (a && a[0]) {
    var end = a[0]
    ret = parseInt(end)
    return ret
  } else {
    return null
  }
  if (isNaN(ret)) {
    return null
  }
  return ret
}
function getStart (str) {
  var ret = null
  var match = /[0-9]+,[0-9]+,.*/.test(str)
  if (!match) {
    return null
  }
  var a = str.split(',')
  if (a && a[0]) {
    var end = a[0]
    ret = parseInt(end)
    return ret
  } else {
    return null
  }
  if (isNaN(ret)) {
    return null
  }
  return ret
}
function getStart ( str ) { var ret = null var match = / [0-9]+,[0-9]+,.* / . test ( str ) if ( ! match ) { return null } var a = str . split ( ',' ) if ( a && a [ 0 ] ) { var end = a [ 0 ] ret = parseInt ( end ) return ret } else { return null } if ( isNaN ( ret ) ) { return null } return ret }
Get start of uri
@param  {string} str The uri
@return {number}     The start or -1
Get start of uri