function urlFor(href, readmeBaseURL) {
  const absoluteURLMatch = /^https?:\/\/|^\/\//i;
  if (absoluteURLMatch.test(href)) {
    return href;
  }

  return readmeBaseURL + href;
}
// work, and leaves absolute links alone.
work, and leaves absolute links alone.
work and leaves absolute links alone .
function urlFor(href, readmeBaseURL) {
  const absoluteURLMatch = /^https?:\/\/|^\/\//i;
  if (absoluteURLMatch.test(href)) {
    return href;
  }
  return readmeBaseURL + href;
}
function urlFor ( href , readmeBaseURL ) { const absoluteURLMatch = / ^https?:\/\/|^\/\/ / i ; if ( absoluteURLMatch . test ( href ) ) { return href ; } return readmeBaseURL + href ; }
work, and leaves absolute links alone.
work and leaves absolute links alone .