# terminal: Sanitize URLs with characters that cannot be last \(\#43559\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b17b0972048029b3a6a3f05bec4bfbc0bc8ae216

Requested commit: b17b0972048029b3a6a3f05bec4bfbc0bc8ae216

Commit: b17b0972048029b3a6a3f05bec4bfbc0bc8ae216

Tree: 1096a2316719f93556906e858950b388add2d906

Author: Marco Mihai Condrache

Committer: GitHub

## Message

```
terminal: Sanitize URLs with characters that cannot be last (#43559)

Closes #43345

The list of characters comes from the linkify crate, which is already
used for URL detection in the editor:


https://github.com/robinst/linkify/blob/5239e12e26c633f42323e51ed81b0ff534528077/src/url.rs#L228

Release Notes:

- Improved url links detection in terminals.

---------

Signed-off-by: Marco Mihai Condrache <52580954+marcocondrache@users.noreply.github.com>
```

## Parents

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

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