Skip to content

Commit 5dafe82

Browse files
authored
Fix infinite iteration in Matches method (#792)
1 parent 32f53ae commit 5dafe82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TestFramework/MSTest.Core/Assertions/StringAssert.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ public static void Matches(string value, Regex pattern)
577577
/// </exception>
578578
public static void Matches(string value, Regex pattern, string message)
579579
{
580-
Matches(value, pattern, message);
580+
Matches(value, pattern, message, null);
581581
}
582582

583583
/// <summary>

0 commit comments

Comments
 (0)