Skip to content

Commit d43a4e0

Browse files
committed
fix: connect form regex
1 parent 9d0b0bc commit d43a4e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderer/components/blocks/forms/ConnectForm.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const validationSchema = yup.object({
1515
.required('Server Address is required')
1616
.matches(
1717
// 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})?(\/.*)?$/,
18+
/^(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})?(\/.*)?$/,
1919
'Please enter a valid server address',
2020
),
2121
apiKey: yup.string(),

0 commit comments

Comments
 (0)