chore: implement validation for accepting 'http://' and 'https://' url in link modal (#3147)

This commit is contained in:
Anmol Singh Bhatia 2023-12-15 16:39:32 +05:30 committed by GitHub
parent 5b67f27345
commit 2edd2d947e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,7 @@ export const LinkModal: FC<Props> = (props) => {
ref={ref}
hasError={Boolean(errors.url)}
placeholder="https://..."
pattern="^(https?://).*"
className="w-full"
/>
)}