Skip to content

Conversation

@tedspare
Copy link
Contributor

@tedspare tedspare commented Dec 5, 2025

Add stripExcessiveNewlines utility to sanitize inbound messages by removing excessive newlines.

This utility was added to the chat repository to allow for Vercel preview testing, as the target rubriclab/ros repository was inaccessible. The function replaces three or more consecutive newlines with two newlines and trims leading/trailing whitespace, intended for use before forwarding messages to Slack.


Slack Thread

Open in Cursor Open in Web

cursoragent and others added 2 commits December 5, 2025 21:57
This function sanitizes text by replacing 3+ consecutive newlines with
just 2 newlines, and trims leading/trailing whitespace. Useful for
cleaning up inbound messages before forwarding to Slack or other
destinations.
@cursor
Copy link

cursor bot commented Dec 5, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link

vercel bot commented Dec 5, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
chat Ready Ready Preview Comment Dec 5, 2025 10:00pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants