Skip to content

Commit

Permalink
update regex to support x formerly twitter urls
Browse files Browse the repository at this point in the history
Signed-off-by: Vivek Vishal <[email protected]>
  • Loading branch information
vishalvivekm committed Apr 3, 2024
1 parent 5e55af2 commit 9c51c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sections/Community/Web-based-from/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const WebBasedForm = () => {
<label htmlFor="github" className="form-name">GitHub</label>
<Field type="url" placeholder="https://github.com/" className="text-field" id="github" name="github" pattern="http(s?)(:\/\/)((www.)?)github.com(\/)([a-zA-z0-9\-_]+)" />
<label htmlFor="twitter" className="form-name">Twitter</label>
<Field type="url" placeholder="https://twitter.com/" className="text-field" id="twitter" name="twitter" pattern="http(s?)(:\/\/)((www.)?)twitter.com(\/)([a-zA-z0-9\-_]+)" />
<Field type="url" placeholder="https://twitter.com/" className="text-field" id="twitter" name="twitter" pattern="http(s?)(:\/\/)((www.)?)(twitter|x).com(\/)([a-zA-z0-9\-_]+)" />
<label htmlFor="linkedin" className="form-name">Linkedin</label>
<Field type="url" placeholder="https://www.linkedin.com/" className="text-field" id="linkedin" name="linkedin" />
<label htmlFor="tshirtSize" className="form-name">T-shirt size</label>
Expand Down

0 comments on commit 9c51c77

Please sign in to comment.