Fix timeout checking in FindFinalStatePosition (#66365)
authorStephen Toub <stoub@microsoft.com>
Thu, 10 Mar 2022 03:30:04 +0000 (22:30 -0500)
committerGitHub <noreply@github.com>
Thu, 10 Mar 2022 03:30:04 +0000 (20:30 -0700)
commitf091e5585a6c2798ea15174261338b2f186c6be4
tree6fbefcfa70bee5d7141eeda61a936f969a641a67
parent8f7442fe9094b87c6e7111add83689c8883eee1c
Fix timeout checking in FindFinalStatePosition (#66365)

Exit the inner loop every now and then to do a timeout check.
src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/Symbolic/SymbolicRegexMatcher.cs
src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/Regex.Match.Tests.cs