Skip to content

Commit a72c5c2

Browse files
committed
chore: linting
Signed-off-by: Vincent Biret <[email protected]>
1 parent f9f7766 commit a72c5c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.OpenApi/Validations/Rules/OpenApiComponentsRules.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class OpenApiComponentsRules
1717
/// <summary>
1818
/// The key regex.
1919
/// </summary>
20-
public static Regex KeyRegex = new(@"^[a-zA-Z0-9\.\-_]+$");
20+
public static readonly Regex KeyRegex = new(@"^[a-zA-Z0-9\.\-_]+$");
2121

2222
/// <summary>
2323
/// All the fixed fields declared above are objects

0 commit comments

Comments
 (0)