# Trim off surrounding \`\[\]\` when parsing terminal hover links \(\#2906\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 1c6964ee9697cef57bb2876f8e87ca94ad66f3a5

Requested commit: 1c6964ee9697cef57bb2876f8e87ca94ad66f3a5

Commit: 1c6964ee9697cef57bb2876f8e87ca94ad66f3a5

Tree: 6ee268b52a88c5b1508c9b5f45f9c5e5ce2d04af

Author: Kirill Bulatov

Committer: GitHub

## Message

```
Trim off surrounding `[]` when parsing terminal hover links (#2906)

Follow-up of https://github.com/zed-industries/zed/pull/2899

Terminal has to accept `[` and `]` as valid word parts, due to
`[slug].tsx` being a valid file name.
Yet, terminal has to exclude these to match paths in strings like
`[/some/path/[slug].tsx]`.

Release Notes:

- N/A
```

## Parents

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

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

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