Add timeout to Regex

Proprietary

Regex without a timeout can be vulnerable to ReDoS attacks. Specify a TimeSpan timeout or use RegexOptions.NonBacktracking.

OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindMissingTimeoutForRegex
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindMissingTimeoutForRegex

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.