Skip to content

Commit

Permalink
修改检查 github 仓库的逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
hellojukay committed Feb 24, 2022
1 parent d6442bf commit 5a31fe4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,7 @@ func git2https(origins []string) []string {
}

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

func WithPipeline(origin string) string {
Expand Down

0 comments on commit 5a31fe4

Please sign in to comment.