diff --git a/src/git.ts b/src/git.ts index aac8220..83ed707 100644 --- a/src/git.ts +++ b/src/git.ts @@ -89,7 +89,7 @@ function parseGitLog(range: string, cwd: string): GitCommit[] { // Check if a commit subject is a todo transition export function parseTodoTransition(subject: string): { issueId: number; status: string } | null { - const match = subject.match(/^todo\((\d+)\):\s*(\S+)/) + const match = subject.match(/^todo\((\d+)\):\s*([a-z-]+)/) if (!match) return null return { issueId: Number(match[1]), status: match[2] } }