JanGatting / GitCommitMessage

Apache License 2.0
22 stars 13 forks source link

Regex groups are not supported #18

Open tatouft opened 5 years ago

tatouft commented 5 years ago

It would be great to support regex groups, mainly for uncaptured groups. Here is a proposition of code in the parseBranchNameByRegex method of the CommitMessage.java file : while (m.find()) { if(m.groupCount() == 0) { sb.append(m.group() + " "); } else{ for(int i = 1; i <= m.groupCount(); ++i) { sb.append(m.group(i) + " "); } } }