We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c3ea11 commit 5d9c6c5Copy full SHA for 5d9c6c5
src/renderer/components/blocks/forms/ConnectForm.tsx
@@ -16,7 +16,7 @@ const validationSchema = yup.object({
16
.required('Server Address is required')
17
.matches(
18
// eslint-disable-next-line no-useless-escape
19
- /^(https?:\/\/(www\.)?)?([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}|localhost|[a-z0-9]+)(:[0-9]{1,5})?(\/.*)?$/,
+ /^(https?:\/\/(www\.)?)?([a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}|localhost|[a-z0-9]+|((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))(:[0-9]{1,5})?(\/.*)?$/,
20
'Please enter a valid server address',
21
),
22
apiKey: yup.string(),
0 commit comments