core/util/runPuppet.js
function translateUrl (url) {
  const RE = new RegExp('^[./]');
  if (RE.test(url)) {
    const fileUrl = 'file://' + path.join(process.cwd(), url);
    console.log('Relative filename detected -- translating to ' + fileUrl);
    return fileUrl;
  } else {
    return url;
  }
}
function translateUrl (url) {
  const RE = new RegExp('^[./]');
  if (RE.test(url)) {
    const fileUrl = 'file://' + path.join(process.cwd(), url);
    console.log('Relative filename detected -- translating to ' + fileUrl);
    return fileUrl;
  } else {
    return url;
  }
}
function translateUrl ( url ) { const RE = new RegExp ( '^[./]' ) ; if ( RE . test ( url ) ) { const fileUrl = 'file://' + path . join ( process . cwd ( ) , url ) ; console . log ( 'Relative filename detected -- translating to ' + fileUrl ) ; return fileUrl ; } else { return url ; } }
handle relative file name
handle relative file name