lib/prepare-embed.js
function isAPIEnabled(embed) {
  var regex = '\/?api=1&player_id=' + embed.id;
  regex = new RegExp(regex);
  return regex.test(embed.src);
}
function isAPIEnabled(embed) {
  var regex = '\/?api=1&player_id=' + embed.id;
  regex = new RegExp(regex);
  return regex.test(embed.src);
}
function isAPIEnabled ( embed ) { var regex = '\/?api=1&player_id=' + embed . id ; regex = new RegExp ( regex ) ; return regex . test ( embed . src ) ; }
Determine if required `src` parameters are included in `embed`

@param {Object} embed
@returns {Boolean}
Determine if required src parameters are included in embed