This repository middleware for ASP.NET Core to return a 408 Request Timeout response for a regex timeout. This helps add stability to web applications by stopping unexpectedly lengthy regex operations. By returning a 4xx status code, rather than 5xx, we can prevent timeout issues surfacing as server errors.
MIT license