Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1067,6 +1067,12 @@ public async Task Match_Timeout_Loop_Throws(RegexEngine engine)
[MemberData(nameof(RegexHelpers.AvailableEngines_MemberData), MemberType = typeof(RegexHelpers))]
public async Task Match_Timeout_Repetition_Throws(RegexEngine engine)
{
if (engine == RegexEngine.NonBacktracking)
{
// [ActiveIssue("https://github.com/dotnet/runtime/issues/65991")]
return;
}

int repetitionCount = 800_000_000;
Regex regex = await RegexHelpers.GetRegexAsync(engine, @"a\s{" + repetitionCount + "}", RegexOptions.None, TimeSpan.FromSeconds(1));
string input = @"a" + new string(' ', repetitionCount) + @"b";
Expand Down