From e09bba82c95e4b2563862bf8c99f0ebb6bd5127d Mon Sep 17 00:00:00 2001 From: Kaier33 <469439801@qq.com> Date: Thu, 6 May 2021 10:41:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=91=8A=E8=AD=A6=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E6=9C=89=E4=B8=ADlocale,=20=E7=BB=99=E6=AD=A3=E5=88=99?= =?UTF-8?q?=E4=B9=9F=E5=8A=A0=E4=B8=8A=20(#86)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/verifyCommit.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();