Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-09-05 19:19
Flavor·PCRE (Legacy)

/
^(?=.{0,72}$)(vim-patch.*|(fix|feat|docs|test|perf|refactor|chore|build)(\([^)]+\))?!?:\s[a-z].*[^.]$)
/
gm
Open regex in editor

Description

Regex to lint the first line of a commit

Submitted by anonymous