Regex to get ticket after forward slash
arisdavid opened this issue · comments
Hi,
Is it possible to drop the characters before the forward slash. For example feature/JIRA-1234_foo_bar, I only want to extract JIRA-1234.
I tried this pattern but it seems to be extracting feature/ with it.
args: ['--regex=[A-Z][A-Z0-9]+-.*[0-9]', '--format={ticket} {commit_msg}']
Thanks.
I just realize there's a --mode parameter as an optional argument and got it to work
['--regex=[^\/][A-Z][A-Z0-9]+-.*[0-9]', '--format={ticket} {commit_msg}', '--mode=regex_match']