diff --git a/src/verifyCommit.ts b/src/verifyCommit.ts index b564f55..3c63e7e 100644 --- a/src/verifyCommit.ts +++ b/src/verifyCommit.ts @@ -7,7 +7,7 @@ const osLocale = require('os-locale'); const msgPath = process.env.GIT_PARAMS; const msg = require('fs').readFileSync(msgPath, 'utf-8').trim(); -const commitRE = /^(((\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]) )?(revert: )?(feat|fix|docs|UI|refactor|⚡perf|workflow|build|CI|typos|chore|tests|types|wip|release|dep)(\(.+\))?: .{1,50}/; +const commitRE = /^(((\ud83c[\udf00-\udfff])|(\ud83d[\udc00-\ude4f\ude80-\udeff])|[\u2600-\u2B55]) )?(revert: )?(feat|fix|docs|UI|refactor|⚡perf|workflow|build|CI|typos|chore|tests|types|wip|release|dep|locale)(\(.+\))?: .{1,50}/; if (!commitRE.test(msg)) { console.log();