# assistant edit tool: Do not include \`\\r\` in old/new str \(\#26542\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 669c6a3d5ead0d33b6ab9279ce8963474cecb0dd

Requested commit: 669c6a3d5ead0d33b6ab9279ce8963474cecb0dd

Commit: 669c6a3d5ead0d33b6ab9279ce8963474cecb0dd

Tree: 80939d622c58706cc928f3ebbbc8931807d1c125

Author: Agus Zubiaga

Committer: GitHub

## Message

```
assistant edit tool: Do not include `\r` in old/new str (#26542)

#26538 fixed part of the issue, but it would keep trailing carriage
returns in the old/new strings. The model is unlikely to produce those,
but we might as well support them.

Release Notes:

- N/A
```

## Parents

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

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