12345678910111213141516171819202122232425 |
- package lfsutil
- import (
- "github.com/pkg/errors"
- "gogs.io/gogs/internal/lazyregexp"
- )
- type OID string
- var oidRe = lazyregexp.New("^[a-f0-9]{64}$")
- var ErrInvalidOID = errors.New("OID is not valid")
- func ValidOID(oid OID) bool {
- return oidRe.MatchString(string(oid))
- }
|