Merge branch '21128-toolbar-context-menu'
[arvados-workbench2.git] / src / validators / is-remote-host.tsx
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: AGPL-3.0
4
5
6 const ERROR_MESSAGE = 'Remote host is invalid';
7
8 export const isRemoteHost = (value: string) => {
9     return value.match(/\w+\.\w+\.\w+/i) ? undefined : ERROR_MESSAGE;
10 };