Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE2 (PHP >=7.3)

/
(feature|bug|bugfix|task|hotfix)\/[_\.A-Z+a-z\/0-9-]+$
/
gm

Description

To enforce branch names to include specific prefix and not allow some special characters.

Submitted by TParry - 3 years ago