Should you limit to either the short sha length (7) or the long sha length (40)?

```ruby
/\A[0-0a-zA-Z]{7,40}\z/
```