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 <noreply@anthropic.com>
This commit is contained in:
uroma
2026-01-21 14:27:42 +00:00
Unverified
parent a45b71e1e4
commit 7ffb8a8492

View File

@@ -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 = '';