fix: restrict parseTodoTransition regex to only capture valid status words
This commit is contained in:
parent
326c86307a
commit
f95f51ed22
1 changed files with 1 additions and 1 deletions
|
|
@ -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] }
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue