I have a component that I want to use for forms and it's for websites. However, there are multiple possible patterns:
Question:
How can I set the pattern for the input to account for these possible URL patterns?
Component.tsx:
<Form.Control
type="url"
placeholder="Website"
pattern="https?://.*"
onChange={(event: React.ChangeEvent<HTMLInputElement>) => setValue((event.target.value).toLowerCase())}
maxLength={100}
/>