Skip to content

Commit 5a31fe4

Browse files
committed
修改检查 github 仓库的逻辑
1 parent d6442bf commit 5a31fe4

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

git.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ func git2https(origins []string) []string {
6868
}
6969

7070
func ISGithub(origin string) bool {
71-
r := regexp.MustCompile(`github.com`)
72-
return r.Match([]byte(origin))
71+
return strings.Contains(origin, "https://github.com")
7372
}
7473

7574
func WithPipeline(origin string) string {

0 commit comments

Comments
 (0)