git vanity-sha test will spend a lot of cycles before bailing out without a match, when it could have simply complained the required pattern is not valid hex.
This should be easy to fix, but I'm not fluent in Ruby, so I'll refrain from submitting a PR.