Skip to content

Regex groups are not supported #18

@tatouft

Description

@tatouft

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions