Skip to content

Commit

Permalink
feat: version range of hash support 8-length short hash
Browse files Browse the repository at this point in the history
  • Loading branch information
axetroy committed Nov 27, 2020
1 parent 71a51e1 commit d9d3be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 1_parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ type Scope struct {
}

var (
regShortHash = regexp.MustCompile(`^[a-z\d]{7}$`)
regShortHash = regexp.MustCompile(`^[a-z\d]{7,8}$`)
regLongHash = regexp.MustCompile(`^[a-z\d]{40}$`)
regTag = regexp.MustCompile(`^@(\d+)$`)
)
Expand Down

0 comments on commit d9d3be8

Please sign in to comment.