Navigation Menu

Skip to content

Commit

Permalink
JENKINS-43755 - Update Github username regex to be less restrictive.
Browse files Browse the repository at this point in the history
  • Loading branch information
herzog31 committed Apr 21, 2017
1 parent e0497ee commit 7d68f5e
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -121,7 +121,7 @@
public class GitHubSCMSource extends AbstractGitSCMSource {

public static final String VALID_GITHUB_REPO_NAME = "^[0-9A-Za-z._-]+$";
public static final String VALID_GITHUB_USER_NAME = "^[0-9A-Za-z]([0-9A-Za-z._-]+[0-9A-Za-z])$";
public static final String VALID_GITHUB_USER_NAME = "^[A-Za-z0-9](?:[A-Za-z0-9]|-(?=[A-Za-z0-9])){0,38}$";
public static final String VALID_GIT_SHA1 = "^[a-fA-F0-9]{40}$";
public static final String GITHUB_URL = GitHubServerConfig.GITHUB_URL;
private static final Logger LOGGER = Logger.getLogger(GitHubSCMSource.class.getName());
Expand Down

0 comments on commit 7d68f5e

Please sign in to comment.