Skip to content

Commit

Permalink
ISSUE #5207 regex in attachResourcesDialog improved
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristosTsiotsias committed Oct 24, 2024
1 parent 04b7c93 commit fa44e78
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const schema = Yup.object().shape({
Yup.object().shape({
name: Yup.string().strict(false).trim().required('Name is required'),
link: Yup.string().matches(
/^[a-zA-Z]+:\/\/([-a-zA-Z0-9@:%_\+.~#&=]+\/*)+[-a-zA-Z0-9@:%_\+.~#?&=]*$/,
/^[a-zA-Z]+:\/\/([-a-zA-Z0-9@:%_\+.~#&=]+)(\/[-a-zA-Z0-9@:%_\+.~#?&=]*)*$/,
'Link should be a URL').required('Link is required')
})
)
Expand Down

0 comments on commit fa44e78

Please sign in to comment.