From b94d67f5ad11da1df68325e3e18d536935cae831 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mitka?= <75326685+lukasz-mitka@users.noreply.github.com> Date: Mon, 19 Feb 2024 20:19:10 +0100 Subject: [PATCH] Allow managed users (#209) --- internal/check/valid_syntax.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/check/valid_syntax.go b/internal/check/valid_syntax.go index f851e50..0ebabaa 100644 --- a/internal/check/valid_syntax.go +++ b/internal/check/valid_syntax.go @@ -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