# zeta2: Improve zeta old text matching \(\#42580\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/877272703439b227ae85a668534b2854ccc68455)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 877272703439b227ae85a668534b2854ccc68455

Requested commit: 877272703439b227ae85a668534b2854ccc68455

Commit: 877272703439b227ae85a668534b2854ccc68455

Tree: bd704ffd3a74b19d961ebf844621d791fc5d6a2e

Author: Ben Kunkle

Committer: GitHub

## Message

```
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>
```

## Parents

- [aaa116d1293a34650cfed12a4733e70ce2c24790](https://git.cafe/gitcafe/zed/commit/aaa116d1293a34650cfed12a4733e70ce2c24790?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/877272703439b227ae85a668534b2854ccc68455?format=markdown)
