index.js
function _isValidCoreURI(coreURI) {
  if (_isEmpty(coreURI) || !_isString(coreURI)) return false

  try {
    return isURL(coreURI, {
      protocols: ['https'],
      require_protocol: true,
      host_whitelist: [/^[a-z]\.chainpoint\.org$/]
    })
  } catch (error) {
    return false
  }
}
function _isValidCoreURI(coreURI) {
  if (_isEmpty(coreURI) || !_isString(coreURI)) return false

  try {
    return isURL(coreURI, {
      protocols: ['https'],
      require_protocol: true,
      host_whitelist: [/^[a-z]\.chainpoint\.org$/]
    })
  } catch (error) {
    return false
  }
}
function _isValidCoreURI ( coreURI ) { if ( _isEmpty ( coreURI ) || ! _isString ( coreURI ) ) return false try { return isURL ( coreURI , { protocols : [ 'https' ] , require_protocol : true , host_whitelist : [ / ^[a-z]\.chainpoint\.org$ / ] } ) } catch ( error ) { return false } }
Check if valid Core URI

@param {string} coreURI - The Core URI to test for validity
@returns {bool} true if coreURI is a valid Core URI, otherwise false
Check if valid Core URI