Skip to content

Commit

Permalink
fix: connect form regex
Browse files Browse the repository at this point in the history
  • Loading branch information
wwills2 committed Jan 9, 2025
1 parent 9d0b0bc commit d43a4e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer/components/blocks/forms/ConnectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const validationSchema = yup.object({
.required('Server Address is required')
.matches(
// eslint-disable-next-line no-useless-escape
/^(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})?(\/.*)?$/,
'Please enter a valid server address',
),
apiKey: yup.string(),
Expand Down

0 comments on commit d43a4e0

Please sign in to comment.