Skip to content

Commit 0d0bba2

Browse files
roomote[bot]roomotedaniel-lxs
authored
fix: add type check before calling .match() on diffItem.content (RooCodeInc#6905) (RooCodeInc#6906)
* fix: add type check before calling .match() on diffItem.content Fixes RooCodeInc#6905 - Error during diff application "v.content.match is not a function" - Added type check to ensure diffItem.content is a string before calling .match() - Added comprehensive tests for handling non-string content values - Prevents runtime errors when content is null, undefined, or other non-string types * fix: validate content type earlier in diff parsing - Move type check to where content is first extracted from XML - Remove redundant check since content is now guaranteed to be string - Add test for early content validation * chore: remove comments * fix: add TelemetryService mock to multiApplyDiffTool tests * fix: add captureDiffApplicationError to TelemetryService mock --------- Co-authored-by: Roo Code <[email protected]> Co-authored-by: daniel-lxs <[email protected]> Co-authored-by: Daniel <[email protected]>
1 parent bfdd158 commit 0d0bba2

File tree

2 files changed

+410
-5
lines changed

2 files changed

+410
-5
lines changed

0 commit comments

Comments
 (0)