It might be possible to create and spawn a temporary web worker from a datauri, execute the regex within and then terminate it on timeout.
(Not really interested in implementing this, but it may be a nice exercise for someone π)
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too