Skip to content

Commit

Permalink
chore: fix script
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Feb 3, 2024
1 parent 037a002 commit c419c8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verifyCommit.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const msgPath = path.resolve('.git/COMMIT_EDITMSG')
const msg = readFileSync(msgPath, 'utf-8').trim()

const commitRE =
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?: .{1,50}/
/^(revert: )?(feat|fix|docs|dx|style|refactor|perf|test|workflow|build|ci|chore|types|wip|release)(\(.+\))?!?: .{1,50}/

if (!commitRE.test(msg)) {
console.log()
Expand Down

0 comments on commit c419c8a

Please sign in to comment.