improve hostname match regex

This commit is contained in:
Massaki Archambault 2024-05-08 19:34:29 -04:00
parent e9670d59a1
commit 074cc9a349
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ func NewClient(p GitClientParam) (*gitClient, error) {
c := &gitClient{
GitClientParam: p,
hostnameProg: regexp.MustCompile(`([a-z0-1]+\.)+[a-z0-1]+`),
hostnameProg: regexp.MustCompile(`([a-z0-1:\-]+\.)+[a-z0-1:\-]+`),
queue: queueFactory.RegisterQueue(&taskq.QueueOptions{
Name: "git-queue",