Skip to content

Commit

Permalink
Revert to old regex to fix GB18030 test case discovery regression
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidARaygoza committed Aug 12, 2024
1 parent 077895c commit fe35d95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GoogleTestAdapter/Core/TestCases/StreamingListTestsParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ namespace GoogleTestAdapter.TestCases

public class StreamingListTestsParser
{
private static readonly Regex SuiteRegex = new Regex($@"([^.\s]*(?:\.[\S]+)*)(?:{Regex.Escape(GoogleTestConstants.TypedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly Regex NameRegex = new Regex($@"([\S]*)(?:{Regex.Escape(GoogleTestConstants.ParameterizedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly Regex SuiteRegex = new Regex($@"([\w\/]*(?:\.[\w\/]+)*)(?:{Regex.Escape(GoogleTestConstants.TypedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly Regex NameRegex = new Regex($@"([\w\/]*)(?:{Regex.Escape(GoogleTestConstants.ParameterizedTestMarker)}(.*))?", RegexOptions.Compiled);
private static readonly Regex IsParamRegex = new Regex(@"(\w+/)?\w+/\d+", RegexOptions.Compiled);

private readonly string _testNameSeparator;
Expand Down

0 comments on commit fe35d95

Please sign in to comment.