Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
(?:\(Merged PR \d+: \))?([a-zA-Z]+)(?:\(([\w$\.\-*\s]*)\))?\!?:(.*)
/
g

Description

Using the right headerPattern that can correctly parse either the merge message or the commit message I was able to workaround the issue

Submitted by anonymous - 3 years ago