mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-11-19 08:19:22 +08:00
Compute replacements during a single ForEach traversal and collect only changed values before mutating the document, avoiding array allocations and second lookups for unchanged text. Stop scanning after the last targeted user position.