better regex for commit