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

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"
/>
)}