Files
hermes-agent/tests/plugins
Teknium f22490ccd9 fix(telegram): keep digit-led math with brackets, bars and bangs whole
Review finding: "Digit-led math with [ ], |, !, ' or : is half-escaped".
The spaced-formula body was an allow-list, so $2[x+1]$, $2\left|x\right|$,
$5! = 120$, $3'$ or $1:2$ ended the span early and the currency branch
escaped only the opening $, leaving a bare closing $ to pair with the next.
The closing $ already refuses a following digit, so an amount's $ can never
close a span; the body becomes a deny-list (no $, newline, backtick, or a
two-letter word in any script), and any symbol but . , ` marks it as math.

Co-authored-by: BearHuddleston <196404565+BearHuddleston@users.noreply.github.com>
2026-11-08 22:04:22 -08:00
..
…
…