mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-23 01:32:40 +00:00
Custom prompt expansion replaced each placeholder kind in its own pass, so text inserted by an earlier pass was expanded again ($ARGUMENTS containing "$1"), and named values went through String.replace, which reads "$&" and friends as replacement patterns. Match every placeholder in one pass and insert values from a callback. Closes #5613 Co-authored-by: paseo-bot[bot] <266920839+paseo-bot[bot]@users.noreply.github.com> Co-authored-by: 3ae3ae <83870598+3ae3ae@users.noreply.github.com>