Skip to content

Commit 0b8d156

Browse files
authored
allow a hostname without a .xxx suffix. This will allow hostname alias like foo to be a valid hostname (#4262)
1 parent d4691aa commit 0b8d156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cli/azd/pkg/pipeline/github_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ func (p *GitHubScmProvider) configureGitRemote(
132132
}
133133

134134
// defines the structure of an ssl git remote
135-
var gitHubRemoteGitUrlRegex = regexp.MustCompile(`^git@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}:(.*?)(?:\.git)?$`)
135+
var gitHubRemoteGitUrlRegex = regexp.MustCompile(`^git@[a-zA-Z0-9.-_]+:(.*?)(?:\.git)?$`)
136136

137137
// defines the structure of an HTTPS git remote
138138
var gitHubRemoteHttpsUrlRegex = regexp.MustCompile(`^https://(?:www\.)?[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/(.*?)(?:\.git)?$`)

0 commit comments

Comments
 (0)