Skip to content

Commit

Permalink
fix: record github regex validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Julink-eth committed Jul 31, 2024
1 parent 28cfd58 commit 648e2fb
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 648e2fb

Please sign in to comment.