zeta2: Improve zeta old text matching (#42580)

This PR improves Zeta2's matching of `old_text`/`new_text` pairs, using
similar code to what we use in the edit agent. For right now, we've
duplicated the code, as opposed to trying to generalize it.

Release Notes:

- N/A

---------

Co-authored-by: Max <max@zed.dev>
Co-authored-by: Michael <michael@zed.dev>
Co-authored-by: Max Brunsfeld <maxbrunsfeld@gmail.com>
Co-authored-by: Agus <agus@zed.dev>
8772727034Ben Kunkle committed on 11/14/2025, 4:18:16 PM· committed by GitHubparentaaa116d
9 files changedLine totals unavailable