Add .* and .+ grouping tests for Regex (to capture aspnetcore scenario from recent...
authorPrashanth Govindarajan <prgovi@microsoft.com>
Thu, 29 Jul 2021 22:58:53 +0000 (15:58 -0700)
committerGitHub <noreply@github.com>
Thu, 29 Jul 2021 22:58:53 +0000 (18:58 -0400)
commit668a39e878da3d2a79f3fb256b8bba6100238f8c
tree19e7008d634234b1c362234859d3e5db0bc45089
parenta5842801e0c3fef66532da584528905c88b88f5b
Add .* and .+ grouping tests for Regex (to capture aspnetcore scenario from recent regression) #56108

* Add a unit test from aspnetcore

* Expand regex backtracking test cases for ASP.NET

* None and Compiled are already covered; remove loop

* Fix typo in comment

* Make corrections to the new unit tests

Co-authored-by: Jeff Handley <jeff.handley@microsoft.com>
Co-authored-by: Jeff Handley <jeffhandley@users.noreply.github.com>
src/libraries/System.Text.RegularExpressions/tests/Regex.Groups.Tests.cs