Skip to content

Commit e3ce8ce

Browse files
committed
fix possible RegexMatchTimeoutException
6bda890 introduced a Timeout on RegEx compilation. We hit this timeout a few times since this change. Removed the timeout so it uses the default like before.
1 parent 1465fff commit e3ce8ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static class OpenApiPathsRules
3636
}
3737
});
3838

39-
private static readonly Regex regexPath = new Regex("\\{([^/]+)\\}", RegexOptions.Compiled, TimeSpan.FromMilliseconds(100));
39+
private static readonly Regex regexPath = new Regex("\\{([^/]+)\\}", RegexOptions.Compiled);
4040
/// <summary>
4141
/// A relative path to an individual endpoint. The field name MUST begin with a slash.
4242
/// </summary>

0 commit comments

Comments
 (0)