Skip to content

Commit

Permalink
Merge pull request #223 from Consensys/fix/CZK-893-fix-github-field-r…
Browse files Browse the repository at this point in the history
…egex

fix: record github regex validation
  • Loading branch information
Julink-eth authored Jul 31, 2024
2 parents 28cfd58 + 648e2fb commit 1da40ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/linea-ens-app/src/validators/validateAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const twitterRegex = /^[A-Za-z0-9_]{1,15}$/
* - cannot have consecutive hyphens
* - cannot end with hyphen for new users, but existing usernames can
*/
const githubRegex = /^[a-z\d](?:[a-z\d]-?){0,38}$/i
const githubRegex = /^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}(-?)?$/i

/* discord:
* - 2-32 chars
Expand Down

0 comments on commit 1da40ef

Please sign in to comment.