Change RegexCompiler to special-case sets of just 2 or 3 chars (#31734)
authorStephen Toub <stoub@microsoft.com>
Wed, 5 Feb 2020 14:46:14 +0000 (09:46 -0500)
committerGitHub <noreply@github.com>
Wed, 5 Feb 2020 14:46:14 +0000 (09:46 -0500)
commit95b361d7b9551e59f679ecd75cfc1480ee4e9c59
treec14b043b7a37ad46a244668b417740819765081b
parent628e111ad224b6aa323a257896ca4ace5ef46852
Change RegexCompiler to special-case sets of just 2 or 3 chars (#31734)

* Change RegexCompiler to special-case sets of just 2 or 3 chars

* Apply suggestions from code review

Co-Authored-By: Dan Moseley <danmose@microsoft.com>
Co-authored-by: Dan Moseley <danmose@microsoft.com>
src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexCompiler.cs