Skip to content

Strip excessive newlines from inbound messages - #5

Draft
tedspare wants to merge 2 commits into
mainfrom
cursor/strip-excessive-newlines-from-inbound-messages-claude-4.5-opus-high-thinking-039c
Draft

Strip excessive newlines from inbound messages#5
tedspare wants to merge 2 commits into
mainfrom
cursor/strip-excessive-newlines-from-inbound-messages-claude-4.5-opus-high-thinking-039c

Conversation

@tedspare

@tedspare tedspare commented Dec 5, 2025

Copy link
Copy Markdown
Contributor

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.
Co-authored-by: ted.spare <ted.spare@gmail.com>
@cursor

cursor Bot commented Dec 5, 2025

Copy link
Copy Markdown

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

vercel Bot commented Dec 5, 2025

Copy link
Copy Markdown

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