Fix bug in regex where commit msgs with "'" would not match.