lib/vue-youtube-embed.js
function getTimeFromURL (url) {
  if ( url === void 0 ) url = '';

  var times = url.match(timeRegexp);

  if (!times) {
    return 0
  }

  var full = times[0];
  var minutes = times[1];
  var seconds = times[2];

  if (typeof seconds !== 'undefined') {
    seconds = parseInt(seconds, 10);
    minutes = parseInt(minutes, 10);
  } else if (full.includes('m')) {
    minutes = parseInt(minutes, 10);
    seconds = 0;
  } else {
    seconds = parseInt(minutes, 10);
    minutes = 0;
  }

  return seconds + (minutes * 60)
}
function getTimeFromURL (url) {
  if ( url === void 0 ) url = '';

  var times = url.match(timeRegexp);

  if (!times) {
    return 0
  }

  var full = times[0];
  var minutes = times[1];
  var seconds = times[2];

  if (typeof seconds !== 'undefined') {
    seconds = parseInt(seconds, 10);
    minutes = parseInt(minutes, 10);
  } else if (full.includes('m')) {
    minutes = parseInt(minutes, 10);
    seconds = 0;
  } else {
    seconds = parseInt(minutes, 10);
    minutes = 0;
  }

  return seconds + (minutes * 60)
}
function getTimeFromURL ( url ) { if ( url === void 0 ) url = '' ; var times = url . match ( timeRegexp ) ; if ( ! times ) { return 0 } var full = times [ 0 ] ; var minutes = times [ 1 ] ; var seconds = times [ 2 ] ; if ( typeof seconds !== 'undefined' ) { seconds = parseInt ( seconds , 10 ) ; minutes = parseInt ( minutes , 10 ) ; } else if ( full . includes ( 'm' ) ) { minutes = parseInt ( minutes , 10 ) ; seconds = 0 ; } else { seconds = parseInt ( minutes , 10 ) ; minutes = 0 ; } return seconds + ( minutes * 60 ) }
get time from url
@param  {string} url url
@return {number}     time
get time from url