assets/live.js
function isLocal(url) {
        var loc = document.location,
            reg = new RegExp("^\\.|^\/(?!\/)|^[\\w]((?!://).)*$|" + loc.protocol + "//" + loc.host);
        return url.match(reg);
      }
function isLocal(url) {
        var loc = document.location,
            reg = new RegExp("^\\.|^\/(?!\/)|^[\\w]((?!://).)*$|" + loc.protocol + "//" + loc.host);
        return url.match(reg);
      }
function isLocal ( url ) { var loc = document . location , reg = new RegExp ( "^\\.|^\/(?!\/)|^[\\w]((?!://).)*$|" + loc . protocol + "//" + loc . host ) ; return url . match ( reg ) ; }
helper method to assert if a given url is local
helper method to assert if a given url is local