Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Community Library
How to contribute
x
Commit linter
Open Workspace
PCRE (Legacy)
Match
Created 2021-09-05 19:19
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