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

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

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

Visibility: public

Requested revision: 7c498feb85dc6d704036f8a9f6dcda12da3b8a0c

Requested commit: 7c498feb85dc6d704036f8a9f6dcda12da3b8a0c

Commit: 7c498feb85dc6d704036f8a9f6dcda12da3b8a0c

Tree: 6ee268b52a88c5b1508c9b5f45f9c5e5ce2d04af

Author: Kirill Bulatov

Committer: Kirill Bulatov

## Message

```
Trim off surrounding `[]` when parsing terminal hover links

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

```

## Parents

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

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