diff --git a/src/modules/servers/components/CreateServer.tsx b/src/modules/servers/components/CreateServer.tsx index e660b0e..7a4952a 100644 --- a/src/modules/servers/components/CreateServer.tsx +++ b/src/modules/servers/components/CreateServer.tsx @@ -58,7 +58,7 @@ class CreateServer extends React.Component { .required(), url: Yup.string() .matches( - /^https?:\/\/(((www\.)?[a-zA-Z0-9._]{2,}\.[a-z]{2,6})|localhost|([0-9]{1,3}\.){3}[0-9]{1,3})$/, + /^https?:\/\/(((www\.)?[a-zA-Z0-9._-]{2,}\.[a-z]{2,6})|localhost|([0-9]{1,3}\.){3}[0-9]{1,3})$/, 'Invalid URL' ) .required(), @@ -160,4 +160,4 @@ class CreateServer extends React.Component { } } -export default CreateServer \ No newline at end of file +export default CreateServer