From e26d94dcc2afc8051174a0b35988f5f9e7834eb4 Mon Sep 17 00:00:00 2001 From: RichardDillman Date: Sun, 7 Dec 2025 16:31:22 -0500 Subject: [PATCH] Fix: Multi-line messages now captured in project routing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added 's' flag (dotall) to regex so . matches newlines. Previously only first line of multi-line messages was captured. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index e49d18a..db4d965 100644 --- a/src/index.ts +++ b/src/index.ts @@ -411,7 +411,8 @@ bot.on('text', async (ctx) => { } // Check if message is targeted to a specific project: "ProjectName: message" - const projectMatch = message.match(/^([a-zA-Z0-9-_]+):\s*(.+)/); + // Use 's' flag (dotall) so . matches newlines for multi-line messages + const projectMatch = message.match(/^([a-zA-Z0-9-_]+):\s*(.+)/s); if (projectMatch) { const [, targetProject, actualMessage] = projectMatch;