From a65b5f822c54f4b5552bc96b83979ff4e0dea8d5 Mon Sep 17 00:00:00 2001 From: Dan Moseley Date: Thu, 25 Jan 2024 18:48:47 -0700 Subject: [PATCH] test --- .../tests/FunctionalTests/Regex.Match.Tests.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/Regex.Match.Tests.cs b/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/Regex.Match.Tests.cs index f72b477c82011e..b4799d5f00121e 100644 --- a/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/Regex.Match.Tests.cs +++ b/src/libraries/System.Text.RegularExpressions/tests/FunctionalTests/Regex.Match.Tests.cs @@ -88,7 +88,7 @@ public static IEnumerable Match_MemberData() { // Zero-width negative lookahead assertion yield return (@"abc(?!XXX)\w+", "abcXXXdef", RegexOptions.None, 0, 9, false, string.Empty); - yield return (@"(?!(b)b)\1", "ba", RegexOptions.None, 0, 2, false, string.Empty); + yield return (@"(?!(b)b)\1", "ba", RegexOptions.None, 0, 2, false, string.Empty); // negative assertion should not capture yield return (@"(?:(?!(b)b)\1a)+", "babababa", RegexOptions.None, 0, 8, false, string.Empty); yield return (@"(?:(?!(b)b)\1a)*", "babababa", RegexOptions.None, 0, 8, true, string.Empty); yield return (@"(.*?)a(?!(a+)b\2c)\2(.*)", "baaabaac", RegexOptions.None, 0, 8, false, string.Empty); @@ -126,6 +126,7 @@ public static IEnumerable Match_MemberData() yield return (@"123(?[0-9]+)3" // The last 3 causes the match to fail, since the non backtracking subexpression does not give up the last digit it matched