From 998f62563af0d68b737498ffd046de88f2e7d374 Mon Sep 17 00:00:00 2001 From: Tom Prince Date: Tue, 7 Apr 2020 09:36:48 -0600 Subject: [PATCH] Update proxyservice/jenkins.go Co-Authored-By: Jeremiah Orem --- proxyservice/jenkins.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxyservice/jenkins.go b/proxyservice/jenkins.go index b3dfa40..4513f25 100644 --- a/proxyservice/jenkins.go +++ b/proxyservice/jenkins.go @@ -118,7 +118,7 @@ func (j *Jenkins) TriggerDockerhubJob(data *DockerHubWebhookData) error { } func (j *Jenkins) TriggerHgJob(repoPath string, repoUrl string, head string, data *HgMessage) error { - matches := regexp.MustCompile("^([A-z0-9-]*)/([A-z0-9-]*)$").FindStringSubmatch(repoPath) + matches := regexp.MustCompile("^([A-Za-z][A-Za-z0-9-]*)/([A-Za-z][A-Za-z0-9-]*)$").FindStringSubmatch(repoPath) if len(matches) != 3 { return fmt.Errorf("Invalid hg.mozilla.org repository path: %s", repoPath) }