The decisive boundary
applyIndexTaps only invokes transforms. Inspect the plugin callback that first changes the bytes.String replacement has its own language.
html.replace('</html>', `${script}</html>`)html.replace('</html>', () => `${script}</html>`)Fix the insertion boundary.
Do not patch only the currency string.
Changing quotes hides one trigger.
The transform remains unsafe for replacement tokens arriving in any future plugin payload.
Regression matrix.
'$'stays literal.$&stays literal.- Prefix token stays literal.
$1stays literal.- Missing anchor is explicit.
- Tap ordering is preserved.
Primary evidence.
Keep the full plugin runbook.
The canonical guide includes safe insertion shapes, diagnostic order, and a replacement-token matrix.
Read and star on GitHub