-
Notifications
You must be signed in to change notification settings - Fork 10.2k
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
Use SearchValues throughout dotnet/aspnetcore #46484
Comments
Some of this was done. Moving to preview 4 to continue chipping away. |
Thanks for contacting us. We're moving this issue to the |
Nit: should the title of this issue be updated to use |
Should |
I'd be interested in picking up a few items in the coming weeks. |
I think with the last PR everything outlined above is covered., hence the lát PR closed this issue. |
Works for me. Any remaining concerns @MihaZupan? |
Thank you for the help @ladeak |
Ah, I missed that. I will do the final PR. |
Akin to dotnet/runtime#78204
Some uses have already been replaced in #45300, but there are more cases where using
IndexOfAnyValues
can speed things up or simplify the implementation. From a few grep searches:PathString.ToUriComponent
can be rewritten along the lines ofUriHelper.EscapeString
aspnetcore/src/Http/Http.Abstractions/src/HostString.cs
Line 120 in 83237c9
private static bool HasInvalidPathChars(string path) => path.IndexOfAny(_invalidFileNameChars) != -1;
Targets old TFMsaspnetcore/src/FileProviders/Embedded/src/Manifest/EmbeddedFilesManifest.cs
Line 87 in 83237c9
aspnetcore/src/Shared/MediaType/HttpTokenParsingRule.cs
Line 69 in 83237c9
aspnetcore/src/Http/Shared/HttpRuleParser.cs
Line 94 in 83237c9
aspnetcore/src/Http/Headers/src/ContentDispositionHeaderValue.cs
Line 613 in 83237c9
aspnetcore/src/Http/Shared/CookieHeaderParserShared.cs
Line 238 in 83237c9
aspnetcore/src/Mvc/Mvc.ViewFeatures/src/Rendering/TagBuilder.cs
Line 428 in 83237c9
aspnetcore/src/Mvc/Mvc.Razor/src/TagHelpers/UrlResolutionTagHelper.cs
Line 52 in 83237c9
The text was updated successfully, but these errors were encountered: