This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 296
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
1 parent
9e60266
commit 4e128be
Showing
3 changed files
with
17 additions
and
41 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters