Skip to content

Commit

Permalink
Allow managed users
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasz-mitka authored Feb 16, 2024
1 parent 84b4fa2 commit 630eb28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/check/valid_syntax.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var (
// A valid username/organization name has up to 39 characters (per GitHub Join page)
// and is matched by the following regex: /^[a-z\d](?:[a-z\d]|-(?=[a-z\d])){0,38}$/i
// A valid team name consists of alphanumerics, underscores and dashes
usernameOrTeamRegexp = regexp.MustCompile(`^@(?i:[a-z\d](?:[a-z\d-]){0,37}[a-z\d](/[a-z\d](?:[a-z\d_-]*)[a-z\d])?)$`)
usernameOrTeamRegexp = regexp.MustCompile(`^@(?i:[a-z\d](?:[a-z\d_-]){0,37}[a-z\d](/[a-z\d](?:[a-z\d_-]*)[a-z\d])?)$`)

// Per: https://davidcel.is/posts/stop-validating-email-addresses-with-regex/
// just check if there is '@' and a '.' afterwards
Expand Down

0 comments on commit 630eb28

Please sign in to comment.