File tree Expand file tree Collapse file tree
Philips.CodeAnalysis.SecurityAnalyzers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33using System ;
44using System . Collections . Generic ;
5+ using System . Globalization ;
56using System . IO ;
67using System . Linq ;
78using Microsoft . CodeAnalysis ;
@@ -363,10 +364,7 @@ private static string ExtractLicenseFromUrl(string licenseUrl)
363364
364365 private static bool HasSubstringIgnoreCase ( string source , string value )
365366 {
366- #pragma warning disable CA2249 // Use IndexOf for cross-framework compatibility
367- // Use IndexOf for compatibility across all target frameworks
368- return source . IndexOf ( value , StringComparison . OrdinalIgnoreCase ) != - 1 ;
369- #pragma warning restore CA2249
367+ return source . ToUpper ( CultureInfo . InvariantCulture ) . Contains ( value . ToUpper ( CultureInfo . InvariantCulture ) ) ;
370368 }
371369
372370 private static bool IsLicenseAcceptable ( string license , HashSet < string > allowedLicenses )
You can’t perform that action at this time.
0 commit comments