Skip to content

Commit 26ed336

Browse files
zhing2006claude
andauthored
fix: correct regex trailing whitespace and add missing projectRoot param (Fission-AI#575)
- Add \s* to parseTasksFile regex to handle trailing whitespace in task lines - Add missing projectRoot argument to resolveSchema call in generateApplyInstructions Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 847aa81 commit 26ed336

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/commands/workflow/instructions.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ function parseTasksFile(content: string): TaskItem[] {
221221

222222
for (const line of lines) {
223223
// Match checkbox patterns: - [ ] or - [x] or - [X]
224-
const checkboxMatch = line.match(/^[-*]\s*\[([ xX])\]\s*(.+)$/);
224+
const checkboxMatch = line.match(/^[-*]\s*\[([ xX])\]\s*(.+)\s*$/);
225225
if (checkboxMatch) {
226226
taskIndex++;
227227
const done = checkboxMatch[1].toLowerCase() === 'x';
@@ -314,7 +314,7 @@ export async function generateApplyInstructions(
314314
const changeDir = path.join(projectRoot, 'openspec', 'changes', changeName);
315315

316316
// Get the full schema to access the apply phase configuration
317-
const schema = resolveSchema(context.schemaName);
317+
const schema = resolveSchema(context.schemaName, projectRoot);
318318
const applyConfig = schema.apply;
319319

320320
// Determine required artifacts and tracking file from schema

0 commit comments

Comments
 (0)