# Bump fancy-regex to v0.17.0 \(\#51549\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 092cf0b3cafed3df12d8773c63f84720102f3e1d

Requested commit: 092cf0b3cafed3df12d8773c63f84720102f3e1d

Commit: 092cf0b3cafed3df12d8773c63f84720102f3e1d

Tree: 474684604130f1e88ac35744553bce094b96941a

Author: Pratik Karki

Committer: GitHub

## Message

```
Bump fancy-regex to v0.17.0 (#51549)

This fixes "Error compiling regex: Look-behind assertion without
constant size" when using variable-length lookbehinds in search, such as
`(?<=^(?:\s{4})*)\s{4}`.

fancy-regex 0.17.0 adds support for variable-length lookbehinds using
regex-automata's DFA reverse search commit:
https://github.com/fancy-regex/fancy-regex/commit/b58fb31

Closes #50219 

Before you mark this PR as ready for review, make sure that you have:
- [x] Added a solid test coverage and/or screenshots from doing manual
testing
- [x] Done a self-review taking into account security and performance
aspects
- [x] Aligned any UI changes with the [UI
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)

Release Notes:

- Fixed the error message on compilation of regular expressions
containing variable length lookbehind assertions

Previously:
<img width="1582" height="1377" alt="image"
src="https://github.com/user-attachments/assets/3e275891-aef5-482e-87f0-c47b9eac3c2a"
/>


Now:
<img width="1323" height="1015" alt="image"
src="https://github.com/user-attachments/assets/8638cd08-fcd0-40f9-8749-32e6352e89b7"
/>


Thanks to @vorahardik7 for helping out with a test example and
@AmaanBilwar for suggesting a fix!

Signed-off-by: Pratik Karki <pratik@prertik.com>
```

## Parents

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

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