From b3ae0fd2a0d92c439f9fff70e604b992d11dfb2f Mon Sep 17 00:00:00 2001 From: Admin Date: Sat, 27 Jun 2026 19:52:35 +0300 Subject: [PATCH 1/2] fix: handle /ponytail:review (colon form) for review mode Previously '/ponytail:review' fell to getDefaultMode() instead of activating review mode, because the condition checked for the unreachable '/ponytail:ponytail-review' (wrong pattern). Also removes the unreachable disjunct that could never be matched. Closes #361 --- hooks/ponytail-mode-tracker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks/ponytail-mode-tracker.js b/hooks/ponytail-mode-tracker.js index 5e859374..bf18aaff 100644 --- a/hooks/ponytail-mode-tracker.js +++ b/hooks/ponytail-mode-tracker.js @@ -21,7 +21,7 @@ process.stdin.on('end', () => { let mode = null; - if (cmd === '/ponytail-review' || cmd === '/ponytail:ponytail-review') { + if (cmd === '/ponytail-review' || cmd === '/ponytail:review') { mode = 'review'; } else if (cmd === '/ponytail' || cmd === '/ponytail:ponytail') { if (arg === 'lite') mode = 'lite'; From a916757f6818e5ee0fb34da4bfdb18dfd36278fd Mon Sep 17 00:00:00 2001 From: Admin Date: Sat, 27 Jun 2026 19:53:13 +0300 Subject: [PATCH 2/2] fix: correct CSV sum regex to use \d instead of [\\d] In correctness.js, [\\d] in a raw string creates a character class matching a literal backslash or 'd', not a digit. The intended lookbehind/lookahead (?