Problem
In src/components/RegexpTester.tsx, the RegExp validation and execution run directly on the main thread via [...testString.matchAll(regex)].
If a user enters a regex that isn't configured globally (g flag missing) or hits catastrophic backtracking, the browser's main execution thread freezes completely, hanging the UI.
Suggestion
Isolate regex matches inside a Web Worker. If execution takes more than 500ms, terminate the worker and return a timeout warning.
Problem
In
src/components/RegexpTester.tsx, the RegExp validation and execution run directly on the main thread via[...testString.matchAll(regex)].If a user enters a regex that isn't configured globally (
gflag missing) or hits catastrophic backtracking, the browser's main execution thread freezes completely, hanging the UI.Suggestion
Isolate regex matches inside a Web Worker. If execution takes more than 500ms, terminate the worker and return a timeout warning.