1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
6 const ERROR_MESSAGE = 'Remote host is invalid';
8 export const isRemoteHost = (value: string) => {
9 return value.match(/\w+\.\w+\.\w+/i) ? undefined : ERROR_MESSAGE;