Generalizing regexp for bad branch name.