This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sanitize entire response before parsing comments (#416)
<!-- This is an auto-generated comment: release notes by OSS CodeRabbit --> ### Summary by CodeRabbit ``` ### Bug Fixes: - Fixed a logic error in the `add` function in `prompts.ts`. The operation has been corrected from subtraction to addition. - Enhanced security in `review.ts` by sanitizing the entire response before parsing comments. ### Refactor: - Renamed `sanitizeComment` function to `sanitizeResponse` in `review.ts`, and expanded its functionality to sanitize code blocks for suggestions and diffs. ### Removed: - Removed single line comment functionality as it was deemed unnecessary. ``` > 🎉 Here's to bugs that are no more, > To logic errors shown the door. > With sanitized responses, we stand tall, > In the face of threats, big or small. > So here's to code that's clean and neat, > Making our victory oh so sweet! 🥳 <!-- end of auto-generated comment: release notes by OSS CodeRabbit -->
- Loading branch information