From af4b617243d9f862dac9d7dd026ce17698f12781 Mon Sep 17 00:00:00 2001 From: Hyunseok Oh Date: Fri, 13 Sep 2024 13:11:18 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20:sparkles:=20(=EA=B3=B5=EB=B0=B1)*=3F(?= =?UTF-8?q?=EA=B3=B5=EB=B0=B1)=20=EC=BB=A4=EB=B0=8B=EB=A9=94=EC=8B=9C?= =?UTF-8?q?=EC=A7=80=20=ED=8C=A8=ED=84=B4=EB=8F=84=20=EC=8A=A4=EC=BD=94?= =?UTF-8?q?=ED=94=84=EA=B0=80=20=EB=8B=A4=EB=A4=84=EC=A7=80=EA=B2=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20(#14)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.js | 2 +- package.json | 2 +- src/main.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 971d23f..fbbc2ab 100644 --- a/dist/index.js +++ b/dist/index.js @@ -105221,7 +105221,7 @@ var ensureIssueTableString = function (body, table, replace) { // e.g. fix(scope): message -> scope // e.g. fix: message -> undefined var extractScopeFromCommitMessage = function (message) { - var match = message.match(/^(\w+)(?:\(([^)]+)\))?:/); + var match = message.match(/^\s*\*?\s*(\w+)(?:\(([^)]+)\))?:/); return match ? match[2] : undefined; }; var IssueNumberTitleExporter = /** @class */ (function () { diff --git a/package.json b/package.json index 9de452b..26b0811 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "comment-related-issues", - "version": "0.1.1", + "version": "0.1.2", "main": "index.js", "license": "(MIT OR Apache-2.0)", "scripts": { diff --git a/src/main.ts b/src/main.ts index 09a6b6f..5c82bac 100644 --- a/src/main.ts +++ b/src/main.ts @@ -50,7 +50,7 @@ const ensureIssueTableString = (body: string, table: string, replace: boolean) = // e.g. fix(scope): message -> scope // e.g. fix: message -> undefined const extractScopeFromCommitMessage = (message: string): string | undefined => { - const match = message.match(/^(\w+)(?:\(([^)]+)\))?:/); + const match = message.match(/^\s*\*?\s*(\w+)(?:\(([^)]+)\))?:/); return match ? match[2] : undefined; };