Skip to content

Commit

Permalink
fix possible RegexMatchTimeoutException
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
mthesing88 committed Jan 11, 2024
1 parent 1465fff commit e3ce8ce
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static class OpenApiPathsRules
}
});

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

0 comments on commit e3ce8ce

Please sign in to comment.