Skip to content

Commit a093df5

Browse files
author
Aaron Schlesinger
committed
ref(sha.go): use MatchString instead of Match
1 parent 96e6dfa commit a093df5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/gitreceive/git/sha.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ type SHA struct {
2727
}
2828

2929
func NewSha(rawSha string) (*SHA, error) {
30-
if !shaRegex.Match([]byte(rawSha)) {
30+
if !shaRegex.MatchString(rawSha) {
3131
return nil, ErrInvalidGitSha{sha: rawSha}
3232
}
3333
return &SHA{full: rawSha, short: rawSha[0:8]}, nil

0 commit comments

Comments
 (0)