From 7ffb8a8492d912ba419bbbe26c0562a488602a87 Mon Sep 17 00:00:00 2001 From: uroma Date: Wed, 21 Jan 2026 14:27:42 +0000 Subject: [PATCH] Fix regex syntax error in detectApprovalRequest Fix unmatched ) in regular expression by properly escaping backslashes in character class [?\s.]+$ Co-Authored-By: Claude Sonnet 4.5 --- public/claude-ide/ide.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/claude-ide/ide.js b/public/claude-ide/ide.js index d9c63fab..459f5616 100644 --- a/public/claude-ide/ide.js +++ b/public/claude-ide/ide.js @@ -487,7 +487,7 @@ function detectApprovalRequest(content) { let command = match[1].trim(); // Clean up the command - command = command.replace(/[?\s\.]+$/, '').trim(); + command = command.replace(/[?\\s.]+$/, '').trim(); // Extract explanation from the content let explanation = '';