We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d0b0bc commit d43a4e0Copy full SHA for d43a4e0
src/renderer/components/blocks/forms/ConnectForm.tsx
@@ -15,7 +15,7 @@ const validationSchema = yup.object({
15
.required('Server Address is required')
16
.matches(
17
// eslint-disable-next-line no-useless-escape
18
- /^(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})?(\/.*)?$/,
19
'Please enter a valid server address',
20
),
21
apiKey: yup.string(),
0 commit comments