Skip to content

Commit

Permalink
feat: ✨ (공백)*?(공백) 커밋메시지 패턴도 스코프가 다뤄지게 수정 (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
algoshipda authored Sep 13, 2024
1 parent d319a99 commit af4b617
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

0 comments on commit af4b617

Please sign in to comment.