mirror of
https://github.com/jparkerweb/plan2code.git
synced 2026-11-19 13:11:18 -08:00
Refuse run ids that could leave the runs folder and stop replacements being read as patterns
AI Assisted
This commit is contained in:
1 parent
b17213322c
commit
0b6a376915
8 files changed
+37
-13
No files matched your search
@@ -128,7 +128,7 @@ describe('parseProposalFromResponse', () => {
|
||||
});
|
||||
|
||||
it('returns null for malformed JSON', () => {
|
||||
const result = parseProposalFromResponse('```json\n{broken json]\n```');
|
||||
const result = parseProposalFromResponse('```json\n[{"old_text": broken]\n```');
|
||||
expect(result).toBeNull();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user