diff --git a/frontend/src/v4/routes/components/resources/attachResourcesDialog/attachResourcesDialog.component.tsx b/frontend/src/v4/routes/components/resources/attachResourcesDialog/attachResourcesDialog.component.tsx index 401271acdc4..37edd9e4604 100644 --- a/frontend/src/v4/routes/components/resources/attachResourcesDialog/attachResourcesDialog.component.tsx +++ b/frontend/src/v4/routes/components/resources/attachResourcesDialog/attachResourcesDialog.component.tsx @@ -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') }) )