code: function removeColon(protocol) {
      return protocol && protocol.length && protocol[protocol.length - 1] === ':'
          ? protocol.substring(0, protocol.length - 1) : protocol;
  }
docs: Utility function to remove trailing colon from a protocol
  @param {string} protocol
  @return {string}