-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Regex engine to be trimmed #46813
Conversation
Move the lazy Regex creation code to a delegate that is only set with the RegexRouteConstraint constructor that takes a string regexPattern. This allows for the Regex engine to be trimmed when the regexPattern constructor is trimmed. Fix dotnet#46142
I do not understand. |
We want to trim away FYI the alpha constraint still inherits from aspnetcore/src/Http/Routing/src/Constraints/AlphaRouteConstraint.cs Lines 12 to 23 in ce8e0ce
|
Move the lazy Regex creation code to a delegate that is only set with the RegexRouteConstraint constructor that takes a string regexPattern. This allows for the Regex engine to be trimmed when the regexPattern constructor is trimmed.
Fix #46142
Publishing
dotnet new api -aot
app onwin-x64
:main: 12.1 MB (12,725,760 bytes)
PR: 11.3 MB (11,909,120 bytes)