Regular Expressions 101

Enterprise

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

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

Description
Created·2021-09-05 19:19
Type·Match
Flavor·PCRE (Legacy)

Regex to lint the first line of a commit

Submitted by Anonymous
Open Workspace