Skip to content

Commit 5d9c6c5

Browse files
committed
fix: connect form regex
1 parent 7c3ea11 commit 5d9c6c5

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
@@ -16,7 +16,7 @@ const validationSchema = yup.object({
1616
.required('Server Address is required')
1717
.matches(
1818
// 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})?(\/.*)?$/,
19+
/^(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})?(\/.*)?$/,
2020
'Please enter a valid server address',
2121
),
2222
apiKey: yup.string(),

0 commit comments

Comments
 (0)