From 2edd2d947e808fd72c9b264fc9725189178dc32c Mon Sep 17 00:00:00 2001 From: Anmol Singh Bhatia <121005188+anmolsinghbhatia@users.noreply.github.com> Date: Fri, 15 Dec 2023 16:39:32 +0530 Subject: [PATCH] chore: implement validation for accepting 'http://' and 'https://' url in link modal (#3147) --- web/components/core/modals/link-modal.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/components/core/modals/link-modal.tsx b/web/components/core/modals/link-modal.tsx index f80b58d33..9f0ec41bc 100644 --- a/web/components/core/modals/link-modal.tsx +++ b/web/components/core/modals/link-modal.tsx @@ -118,6 +118,7 @@ export const LinkModal: FC = (props) => { ref={ref} hasError={Boolean(errors.url)} placeholder="https://..." + pattern="^(https?://).*" className="w-full" /> )}