File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
src/Microsoft.OpenApi.Readers Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) Microsoft Corporation. All rights reserved.
2
2
// Licensed under the MIT license.
3
3
4
+ using System ;
5
+
4
6
namespace Microsoft . OpenApi . Readers
5
7
{
6
8
/// <summary>
@@ -16,7 +18,7 @@ public static class OpenApiVersionExtensionMethods
16
18
public static bool is2_0 ( this string version )
17
19
{
18
20
bool result = false ;
19
- if ( version . Equals ( "2.0" ) )
21
+ if ( version . Equals ( "2.0" , StringComparison . OrdinalIgnoreCase ) )
20
22
{
21
23
result = true ;
22
24
}
@@ -32,7 +34,7 @@ public static bool is2_0(this string version)
32
34
public static bool is3_0 ( this string version )
33
35
{
34
36
bool result = false ;
35
- if ( version . StartsWith ( "3.0" ) )
37
+ if ( version . StartsWith ( "3.0" , StringComparison . OrdinalIgnoreCase ) )
36
38
{
37
39
result = true ;
38
40
}
@@ -48,7 +50,7 @@ public static bool is3_0(this string version)
48
50
public static bool is3_1 ( this string version )
49
51
{
50
52
bool result = false ;
51
- if ( version . StartsWith ( "3.1" ) )
53
+ if ( version . StartsWith ( "3.1" , StringComparison . OrdinalIgnoreCase ) )
52
54
{
53
55
result = true ;
54
56
}
You can’t perform that action at this time.
0 commit comments