We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52dd0ed commit e3fd390Copy full SHA for e3fd390
cla-backend/cla/models/github_models.py
@@ -36,6 +36,8 @@
36
EXCLUDE_GITHUB_EMAILS = ["noreply.github.com"]
37
NOREPLY_ID_PATTERN = re.compile(r"^(\d+)\+([a-zA-Z0-9-]+)@users\.noreply\.github\.com$")
38
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.
41
GITHUB_USERNAME_REGEX = re.compile(r'^(?!-)(?!.*--)[A-Za-z0-9-]{3,39}(?<!-)$')
42
43
class TTLCache:
0 commit comments