Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Runaway regex search patterns, f.x. catastrophical backtracks, crashes the IDE.
Solution example: regex101.com gracefully validates and breaks execution.
Steps to Reproduce
- Create a file with (exactly):
{ test
},
- Search all:
\{([\s\S]|[^;])+testwith regex (.*) enabled.
Expected Behavior
Gracefully report something like: "Catastrophic backtracking has been detected and the execution of your expression has been halted. "
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.4.7 (Universal)
VSCode Version: 1.105.1
Commit: ca0f9bf806f235ea014a22712cbcbf5e88ca77e0
Date: 2026-01-20T20:52:38.077Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 24.6.0
Does this stop you from using Cursor
No - Cursor works, but with this issue