fix crash when commit messages contain negative percentages like "-45%"