Fix typo and code formatting
Merge pull request #1 from redcape/regex-hashsum-check2

merge from upstream