Skip to content

Commit

Permalink
mirror at 20210719145748
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Jul 19, 2021
1 parent 3f11e12 commit d9c14d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (m *ProjectCreate) Valid() error {
if v.Must(m.SID != "", "sid required") {
v.Mustf(ReValidSID.MatchString(m.SID), "sid invalid %s", ReValidSIDStr)
cnt := utf8.RuneCountInString(m.SID)
v.Must(cnt >= 6 && cnt <= 20, "sid must have length between 6-20 characters")
v.Must(cnt >= 6 && cnt <= 32, "sid must have length between 6-32 characters")
}

v.Must(utf8.ValidString(m.Name), "name invalid")
Expand Down

0 comments on commit d9c14d2

Please sign in to comment.