Skip to content

Commit e3fd390

Browse files
Add comment as suggested by Copilot
Signed-off-by: Lukasz Gryglicki <[email protected]> Generated with [OpenAI](https://platform.openai.com/) Assisted by [OpenAI](https://platform.openai.com/)
1 parent 52dd0ed commit e3fd390

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cla-backend/cla/models/github_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
EXCLUDE_GITHUB_EMAILS = ["noreply.github.com"]
3737
NOREPLY_ID_PATTERN = re.compile(r"^(\d+)\+([a-zA-Z0-9-]+)@users\.noreply\.github\.com$")
3838
NOREPLY_USER_PATTERN = re.compile(r"^([a-zA-Z0-9-]+)@users\.noreply\.github\.com$")
39+
# GitHub usernames must be 3-39 characters long, can only contain alphanumeric characters or hyphens,
40+
# cannot begin or end with a hyphen, and cannot contain consecutive hyphens.
3941
GITHUB_USERNAME_REGEX = re.compile(r'^(?!-)(?!.*--)[A-Za-z0-9-]{3,39}(?<!-)$')
4042

4143
class TTLCache:

0 commit comments

Comments
 (0)