Skip to content

Commit

Permalink
Merge pull request #43 from manifoldco/ver-code-arg
Browse files Browse the repository at this point in the history
changed go-manifold's codeRegex to allow the 6 digit verification
  • Loading branch information
jeffandersen committed Dec 5, 2017
2 parents c5f61c8 + 0f2a630 commit aa44f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion formats.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
var (
labelRegex = regexp.MustCompile("^[a-z0-9][a-z0-9-_]{1,128}$")
nameRegex = regexp.MustCompile(`^[a-zA-Z0-9][a-z0-9A-Z\. \-]{2,128}$`)
codeRegex = regexp.MustCompile("^[0-9abcdefghjkmnpqrtuvwxyz]{16}$")
codeRegex = regexp.MustCompile("^([0-9abcdefghjkmnpqrtuvwxyz]{16}|[0-9]{6})$")
)

var (
Expand Down

0 comments on commit aa44f18

Please sign in to comment.