Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex groups are not supported #18

Open
tatouft opened this issue Sep 4, 2019 · 0 comments
Open

Regex groups are not supported #18

tatouft opened this issue Sep 4, 2019 · 0 comments

Comments

@tatouft
Copy link

tatouft commented Sep 4, 2019

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) + " ");
}
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant