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:
@@ -487,7 +487,7 @@ function detectApprovalRequest(content) {
|
|||||||
let command = match[1].trim();
|
let command = match[1].trim();
|
||||||
|
|
||||||
// Clean up the command
|
// Clean up the command
|
||||||
command = command.replace(/[?\s\.]+$/, '').trim();
|
command = command.replace(/[?\\s.]+$/, '').trim();
|
||||||
|
|
||||||
// Extract explanation from the content
|
// Extract explanation from the content
|
||||||
let explanation = '';
|
let explanation = '';
|
||||||
|
|||||||
Reference in New Issue
Block a user