Skip to content

Commit

Permalink
Update proxyservice/jenkins.go
Browse files Browse the repository at this point in the history
Co-Authored-By: Jeremiah Orem <[email protected]>
  • Loading branch information
tomprince and oremj authored Apr 7, 2020
1 parent 1153279 commit 998f625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxyservice/jenkins.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 998f625

Please sign in to comment.