Try this :
function getVcoHostname() { var answerUrl = workflow.getAnswerUrl().url; var re = new RegExp('^(?:f|ht)tp(?:s)?\://([^/]+)', 'im'); return answerUrl.match(re)[1].toString().split(":")[0];}
Try this :
function getVcoHostname() { var answerUrl = workflow.getAnswerUrl().url; var re = new RegExp('^(?:f|ht)tp(?:s)?\://([^/]+)', 'im'); return answerUrl.match(re)[1].toString().split(":")[0];}