Closed harjotgill closed 11 months ago
CodeRabbit
Walkthrough: This update corrects a logic error in the add
function and enhances security by sanitizing the entire response before parsing comments. The changes ensure accurate arithmetic operations and safer handling of responses, improving both functionality and security.
Changes:
Files | Summary |
---|---|
src/prompts.ts |
Fixed a syntax error in the add function, changing z = x - y to z = x + y for correct addition operation. |
src/review.ts |
Enhanced security by sanitizing the entire response before parsing comments. Renamed sanitizeComment to sanitizeResponse and updated its functionality to sanitize code blocks for suggestions and diffs. Removed single line comment functionality. |
Summary by CodeRabbit