Skip to content

Commit 064b6ca

Browse files
committed
chore: WIP on fix/revert-to-IDictionary-and-allow-sorting
1 parent 75f21b4 commit 064b6ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
using System.Text.RegularExpressions;
66
using Microsoft.OpenApi.Models;
77
using Microsoft.OpenApi.Properties;
8+
using System;
89

910
namespace Microsoft.OpenApi.Validations.Rules
1011
{
@@ -17,7 +18,7 @@ public static class OpenApiComponentsRules
1718
/// <summary>
1819
/// The key regex.
1920
/// </summary>
20-
internal static readonly Regex KeyRegex = new(@"^[a-zA-Z0-9\.\-_]+$");
21+
internal static readonly Regex KeyRegex = new(@"^[a-zA-Z0-9\.\-_]+$", RegexOptions.None, TimeSpan.FromMilliseconds(100));
2122

2223
/// <summary>
2324
/// All the fixed fields declared above are objects

0 commit comments

Comments
 (0)