Regular Expressions 101

Commit linter

Open Workspace
  • PCRE (Legacy)
  • Match
0

Regular Expression

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

Description

Regex to lint the first line of a commit

Submitted by Anonymous