Skip to content

Commit

Permalink
update url regex in api conn
Browse files Browse the repository at this point in the history
  • Loading branch information
imda-amdlahir committed Oct 24, 2023
1 parent 94b11e7 commit 57714a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ declare module 'yup' {
const urlPattern = new RegExp(
'^([a-zA-Z]+:\\/\\/)?' + // protocol
'localhost|' + // localhost
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|' + // OR domain name
'(([a-z]+.)?[a-z\\d\\- ]+(\\.([a-z]{2,10})){1,2}|' + // OR domain name //([a-z]+.)?[a-z\d\- ]+(\.([a-z]{2,10})){1,2}| || (([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}
'((\\d{1,3}\\.){3}\\d{1,3}))' + // OR IP (v4) address
'(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*' + // port and path
'(\\?[;&a-z\\d%_.~+=-]*)?' + // query string
Expand Down

0 comments on commit 57714a7

Please sign in to comment.