You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 6, 2024. It is now read-only.
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 -->
0 commit comments