From f95f51ed22c4225cc7a7f3316b6e45fc4c1cdc6b Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Fri, 20 Mar 2026 20:45:57 +0100 Subject: [PATCH 1/2] fix: restrict parseTodoTransition regex to only capture valid status words --- src/git.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] } } From 5dfc9c3f09bf8438e377dd1a17b619169613052c Mon Sep 17 00:00:00 2001 From: Tiara Rodney Date: Fri, 20 Mar 2026 20:46:08 +0100 Subject: [PATCH 2/2] chore: bump version to 0.3.3 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f594184..d8233e7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@byteb4rb1e/mime-todo", - "version": "0.3.2", + "version": "0.3.3", "description": "CLI for the MIME TODO issue tracker specification with Bugzilla integration", "author": "Tiara Rodney ", "license": "CC-BY-ND-4.0",