Skip to content

Commit

Permalink
Merge pull request #5478 from layer5io/vishalvivekm/patch-1
Browse files Browse the repository at this point in the history
update regex to support x formerly twitter urls
  • Loading branch information
vishalvivekm authored Apr 3, 2024
2 parents 5e55af2 + 9c51c77 commit b9dbbf9
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 b9dbbf9

Please sign in to comment.