# terminal: Fix non regex search to actually be non regex \(\#7330\) · gitcafe/zed

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

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

Visibility: public

Requested revision: b4b59f87064374804422163f30b851b5a7a09c27

Requested commit: b4b59f87064374804422163f30b851b5a7a09c27

Commit: b4b59f87064374804422163f30b851b5a7a09c27

Tree: e9cfc08ffb7896a73b26f8886a0e3a1eb37b5e5b

Author: N8th8n8el

Committer: GitHub

## Message

```
terminal: Fix non regex search to actually be non regex (#7330)

Alacritty seems to support only regex search out of the box.
This PR just escapes all special regex chars to make non regex search
work as expected.
Disclaimer: New to Rust.

Release Notes:

-Fixed text search not working correctly in terminal ([#4880](https://github.com/zed-industries/zed/issues/4880))
```

## Parents

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

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