File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,13 @@ public static HttpUserAgentInformation Parse(string userAgent)
5050 {
5151 // Fast, allocation-free token scan (keeps public statics untouched)
5252 ReadOnlySpan < char > ua = userAgent . AsSpan ( ) ;
53- foreach ( ( string Token , string Name , HttpUserAgentPlatformType PlatformType ) p in HttpUserAgentStatics . s_platformRules )
53+ foreach ( ( string Token , string Name , HttpUserAgentPlatformType PlatformType ) platform in HttpUserAgentStatics . s_platformRules )
5454 {
55- if ( ContainsIgnoreCase ( ua , p . Token ) )
55+ if ( ContainsIgnoreCase ( ua , platform . Token ) )
5656 {
5757 return new HttpUserAgentPlatformInformation (
58- regex : HttpUserAgentStatics . GetPlatformRegexForToken ( p . Token ) ,
59- name : p . Name ,
60- platformType : p . PlatformType ) ;
58+ HttpUserAgentStatics . GetPlatformRegexForToken ( platform . Token ) ,
59+ platform . Name , platform . PlatformType ) ;
6160 }
6261 }
6362
You can’t perform that action at this time.
0 commit comments