mirror of
https://github.com/go-gitea/gitea.git
synced 2025-02-20 11:43:57 +08:00
Update forReiewPattern
This commit is contained in:
parent
e371a21b95
commit
bd501a625c
@ -105,7 +105,7 @@ func (ref RefName) IsFor() bool {
|
||||
return strings.HasPrefix(string(ref), ForPrefix)
|
||||
}
|
||||
|
||||
var forReviewPattern = regexp.MustCompile(ForReviewPrefix + `[1-9][0-9]*`)
|
||||
var forReviewPattern = regexp.MustCompile(ForReviewPrefix + `^[1-9][0-9]\d*$`)
|
||||
|
||||
func (ref RefName) IsForReview() bool {
|
||||
return forReviewPattern.MatchString(string(ref))
|
||||
|
Loading…
x
Reference in New Issue
Block a user